Поправил форму редактирования болезни

This commit is contained in:
Никита Потапов 2024-04-30 10:30:17 +04:00
parent 51b03a98aa
commit 78519cdc69
2 changed files with 111 additions and 29 deletions

View File

@ -28,12 +28,94 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); buttonCancel = new Button();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; buttonApply = new Button();
this.ClientSize = new System.Drawing.Size(800, 450); labelName = new Label();
this.Text = "FormDiagnose"; label2 = new Label();
textBox1 = new TextBox();
textBox2 = new TextBox();
SuspendLayout();
//
// buttonCancel
//
buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonCancel.Location = new Point(356, 182);
buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(94, 29);
buttonCancel.TabIndex = 3;
buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true;
//
// buttonApply
//
buttonApply.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonApply.Location = new Point(256, 182);
buttonApply.Name = "buttonApply";
buttonApply.Size = new Size(94, 29);
buttonApply.TabIndex = 2;
buttonApply.Text = "Сохранить";
buttonApply.UseVisualStyleBackColor = true;
//
// labelName
//
labelName.AutoSize = true;
labelName.Location = new Point(12, 9);
labelName.Name = "labelName";
labelName.Size = new Size(77, 20);
labelName.TabIndex = 4;
labelName.Text = "Название";
//
// label2
//
label2.AutoSize = true;
label2.Location = new Point(12, 46);
label2.Name = "label2";
label2.Size = new Size(107, 20);
label2.TabIndex = 5;
label2.Text = "Комментарий";
//
// textBox1
//
textBox1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
textBox1.Location = new Point(95, 6);
textBox1.Name = "textBox1";
textBox1.Size = new Size(355, 27);
textBox1.TabIndex = 6;
//
// textBox2
//
textBox2.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
textBox2.Location = new Point(12, 69);
textBox2.Multiline = true;
textBox2.Name = "textBox2";
textBox2.Size = new Size(438, 107);
textBox2.TabIndex = 7;
//
// FormDiagnose
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(462, 223);
Controls.Add(textBox2);
Controls.Add(textBox1);
Controls.Add(label2);
Controls.Add(labelName);
Controls.Add(buttonCancel);
Controls.Add(buttonApply);
MinimumSize = new Size(480, 270);
Name = "FormDiagnose";
Text = "Редактировать болезнь";
ResumeLayout(false);
PerformLayout();
} }
#endregion #endregion
private Button buttonCancel;
private Button buttonApply;
private Label labelName;
private Label label2;
private TextBox textBox1;
private TextBox textBox2;
} }
} }