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

This commit is contained in:
Никита Потапов 2024-04-30 10:57:24 +04:00
parent 8d00453609
commit c1c32d22ec
2 changed files with 165 additions and 29 deletions

View File

@ -28,12 +28,148 @@
/// </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 = "FormProcedure";
buttonRemveRecipe = new Button();
buttonAddRecipe = new Button();
labelTableName = new Label();
dataGridView = new DataGridView();
textBoxComment = new TextBox();
textBoxName = new TextBox();
labelComment = new Label();
labelName = new Label();
buttonCancel = new Button();
buttonApply = new Button();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout();
//
// buttonRemveRecipe
//
buttonRemveRecipe.Anchor = AnchorStyles.Top | AnchorStyles.Right;
buttonRemveRecipe.Location = new Point(338, 314);
buttonRemveRecipe.Name = "buttonRemveRecipe";
buttonRemveRecipe.Size = new Size(94, 56);
buttonRemveRecipe.TabIndex = 27;
buttonRemveRecipe.Text = "Удалить рецепт";
buttonRemveRecipe.UseVisualStyleBackColor = true;
//
// buttonAddRecipe
//
buttonAddRecipe.Anchor = AnchorStyles.Top | AnchorStyles.Right;
buttonAddRecipe.Location = new Point(338, 211);
buttonAddRecipe.Name = "buttonAddRecipe";
buttonAddRecipe.Size = new Size(94, 55);
buttonAddRecipe.TabIndex = 26;
buttonAddRecipe.Text = "Добавить рецепт";
buttonAddRecipe.UseVisualStyleBackColor = true;
//
// labelTableName
//
labelTableName.AutoSize = true;
labelTableName.Location = new Point(12, 180);
labelTableName.Name = "labelTableName";
labelTableName.Size = new Size(68, 20);
labelTableName.TabIndex = 25;
labelTableName.Text = "Рецепты";
//
// dataGridView
//
dataGridView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Location = new Point(12, 203);
dataGridView.Name = "dataGridView";
dataGridView.RowHeadersWidth = 51;
dataGridView.RowTemplate.Height = 29;
dataGridView.Size = new Size(300, 186);
dataGridView.TabIndex = 24;
//
// textBoxComment
//
textBoxComment.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
textBoxComment.Location = new Point(12, 72);
textBoxComment.Multiline = true;
textBoxComment.Name = "textBoxComment";
textBoxComment.Size = new Size(438, 104);
textBoxComment.TabIndex = 23;
//
// textBoxName
//
textBoxName.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
textBoxName.Location = new Point(95, 9);
textBoxName.Name = "textBoxName";
textBoxName.Size = new Size(355, 27);
textBoxName.TabIndex = 22;
//
// labelComment
//
labelComment.AutoSize = true;
labelComment.Location = new Point(12, 49);
labelComment.Name = "labelComment";
labelComment.Size = new Size(107, 20);
labelComment.TabIndex = 21;
labelComment.Text = "Комментарий";
//
// labelName
//
labelName.AutoSize = true;
labelName.Location = new Point(12, 12);
labelName.Name = "labelName";
labelName.Size = new Size(77, 20);
labelName.TabIndex = 20;
labelName.Text = "Название";
//
// buttonCancel
//
buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonCancel.Location = new Point(356, 395);
buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(94, 29);
buttonCancel.TabIndex = 19;
buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true;
//
// buttonApply
//
buttonApply.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonApply.Location = new Point(256, 395);
buttonApply.Name = "buttonApply";
buttonApply.Size = new Size(94, 29);
buttonApply.TabIndex = 18;
buttonApply.Text = "Сохранить";
buttonApply.UseVisualStyleBackColor = true;
//
// FormProcedure
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(462, 433);
Controls.Add(buttonRemveRecipe);
Controls.Add(buttonAddRecipe);
Controls.Add(labelTableName);
Controls.Add(dataGridView);
Controls.Add(textBoxComment);
Controls.Add(textBoxName);
Controls.Add(labelComment);
Controls.Add(labelName);
Controls.Add(buttonCancel);
Controls.Add(buttonApply);
MinimumSize = new Size(480, 480);
Name = "FormProcedure";
Text = "Редактировать процедуру";
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private Button buttonRemveRecipe;
private Button buttonAddRecipe;
private Label labelTableName;
private DataGridView dataGridView;
private TextBox textBoxComment;
private TextBox textBoxName;
private Label labelComment;
private Label labelName;
private Button buttonCancel;
private Button buttonApply;
}
}