Сделал форму редактирования рецепта

This commit is contained in:
Никита Потапов 2024-04-30 11:01:42 +04:00
parent c1c32d22ec
commit 3d80a7ade7
2 changed files with 112 additions and 29 deletions

View File

@ -28,12 +28,95 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); textBoxComment = new TextBox();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; labelComment = new Label();
this.ClientSize = new System.Drawing.Size(800, 450); labelProceduresCount = new Label();
this.Text = "FormRecipe"; buttonCancel = new Button();
buttonApply = new Button();
numericUpDownProceduresCount = new NumericUpDown();
((System.ComponentModel.ISupportInitialize)numericUpDownProceduresCount).BeginInit();
SuspendLayout();
//
// textBoxComment
//
textBoxComment.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
textBoxComment.Location = new Point(12, 72);
textBoxComment.Multiline = true;
textBoxComment.Name = "textBoxComment";
textBoxComment.Size = new Size(438, 107);
textBoxComment.TabIndex = 13;
//
// labelComment
//
labelComment.AutoSize = true;
labelComment.Location = new Point(12, 49);
labelComment.Name = "labelComment";
labelComment.Size = new Size(107, 20);
labelComment.TabIndex = 11;
labelComment.Text = "Комментарий";
//
// labelProceduresCount
//
labelProceduresCount.AutoSize = true;
labelProceduresCount.Location = new Point(12, 12);
labelProceduresCount.Name = "labelProceduresCount";
labelProceduresCount.Size = new Size(154, 20);
labelProceduresCount.TabIndex = 10;
labelProceduresCount.Text = "Колиество процедур";
//
// buttonCancel
//
buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonCancel.Location = new Point(356, 185);
buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(94, 29);
buttonCancel.TabIndex = 9;
buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true;
//
// buttonApply
//
buttonApply.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonApply.Location = new Point(256, 185);
buttonApply.Name = "buttonApply";
buttonApply.Size = new Size(94, 29);
buttonApply.TabIndex = 8;
buttonApply.Text = "Сохранить";
buttonApply.UseVisualStyleBackColor = true;
//
// numericUpDownProceduresCount
//
numericUpDownProceduresCount.Location = new Point(172, 12);
numericUpDownProceduresCount.Name = "numericUpDownProceduresCount";
numericUpDownProceduresCount.Size = new Size(164, 27);
numericUpDownProceduresCount.TabIndex = 14;
//
// FormRecipe
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(462, 223);
Controls.Add(numericUpDownProceduresCount);
Controls.Add(textBoxComment);
Controls.Add(labelComment);
Controls.Add(labelProceduresCount);
Controls.Add(buttonCancel);
Controls.Add(buttonApply);
MinimumSize = new Size(480, 270);
Name = "FormRecipe";
Text = "Редактировать рецепт";
((System.ComponentModel.ISupportInitialize)numericUpDownProceduresCount).EndInit();
ResumeLayout(false);
PerformLayout();
} }
#endregion #endregion
private TextBox textBoxComment;
private Label labelComment;
private Label labelProceduresCount;
private Button buttonCancel;
private Button buttonApply;
private NumericUpDown numericUpDownProceduresCount;
} }
} }