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

This commit is contained in:
Никита Потапов 2024-04-30 10:53:21 +04:00
parent 4545a93243
commit 8d00453609
2 changed files with 161 additions and 29 deletions

View File

@ -28,12 +28,144 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Text = "FormMedicament";
textBoxComment = new TextBox();
textBoxName = new TextBox();
labelComment = new Label();
labelName = new Label();
buttonCancel = new Button();
buttonApply = new Button();
labelProcedure = new Label();
labelSymptom = new Label();
comboBoxProcedure = new ComboBox();
comboBoxSymptom = new ComboBox();
SuspendLayout();
//
// textBoxComment
//
textBoxComment.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
textBoxComment.Location = new Point(12, 154);
textBoxComment.Multiline = true;
textBoxComment.Name = "textBoxComment";
textBoxComment.Size = new Size(506, 152);
textBoxComment.TabIndex = 13;
//
// textBoxName
//
textBoxName.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
textBoxName.Location = new Point(105, 9);
textBoxName.Name = "textBoxName";
textBoxName.Size = new Size(413, 27);
textBoxName.TabIndex = 12;
//
// labelComment
//
labelComment.AutoSize = true;
labelComment.Location = new Point(12, 131);
labelComment.Name = "labelComment";
labelComment.Size = new Size(107, 20);
labelComment.TabIndex = 11;
labelComment.Text = "Комментарий";
//
// labelName
//
labelName.AutoSize = true;
labelName.Location = new Point(12, 12);
labelName.Name = "labelName";
labelName.Size = new Size(77, 20);
labelName.TabIndex = 10;
labelName.Text = "Название";
//
// buttonCancel
//
buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonCancel.Location = new Point(424, 312);
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(324, 312);
buttonApply.Name = "buttonApply";
buttonApply.Size = new Size(94, 29);
buttonApply.TabIndex = 8;
buttonApply.Text = "Сохранить";
buttonApply.UseVisualStyleBackColor = true;
//
// labelProcedure
//
labelProcedure.AutoSize = true;
labelProcedure.Location = new Point(12, 53);
labelProcedure.Name = "labelProcedure";
labelProcedure.Size = new Size(87, 20);
labelProcedure.TabIndex = 14;
labelProcedure.Text = "Процедура";
//
// labelSymptom
//
labelSymptom.AutoSize = true;
labelSymptom.Location = new Point(12, 95);
labelSymptom.Name = "labelSymptom";
labelSymptom.Size = new Size(73, 20);
labelSymptom.TabIndex = 15;
labelSymptom.Text = "Симптом";
//
// comboBoxProcedure
//
comboBoxProcedure.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
comboBoxProcedure.DropDownStyle = ComboBoxStyle.DropDownList;
comboBoxProcedure.FormattingEnabled = true;
comboBoxProcedure.Location = new Point(105, 50);
comboBoxProcedure.Name = "comboBoxProcedure";
comboBoxProcedure.Size = new Size(413, 28);
comboBoxProcedure.TabIndex = 16;
//
// comboBoxSymptom
//
comboBoxSymptom.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
comboBoxSymptom.DropDownStyle = ComboBoxStyle.DropDownList;
comboBoxSymptom.FormattingEnabled = true;
comboBoxSymptom.Location = new Point(105, 92);
comboBoxSymptom.Name = "comboBoxSymptom";
comboBoxSymptom.Size = new Size(413, 28);
comboBoxSymptom.TabIndex = 17;
//
// FormMedicament
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(530, 350);
Controls.Add(comboBoxSymptom);
Controls.Add(comboBoxProcedure);
Controls.Add(labelSymptom);
Controls.Add(labelProcedure);
Controls.Add(textBoxComment);
Controls.Add(textBoxName);
Controls.Add(labelComment);
Controls.Add(labelName);
Controls.Add(buttonCancel);
Controls.Add(buttonApply);
MinimumSize = new Size(480, 270);
Name = "FormMedicament";
Text = "Редактировать лекарство";
ResumeLayout(false);
PerformLayout();
}
#endregion
private TextBox textBoxComment;
private TextBox textBoxName;
private Label labelComment;
private Label labelName;
private Button buttonCancel;
private Button buttonApply;
private Label labelProcedure;
private Label labelSymptom;
private ComboBox comboBoxProcedure;
private ComboBox comboBoxSymptom;
}
}