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

This commit is contained in:
Никита Потапов 2024-04-30 10:04:55 +04:00
parent b439e41799
commit 51b03a98aa

View File

@ -36,20 +36,18 @@
comboBoxRecipe = new ComboBox(); comboBoxRecipe = new ComboBox();
numericUpDownDaysCount = new NumericUpDown(); numericUpDownDaysCount = new NumericUpDown();
numericUpDownPillsPerDay = new NumericUpDown(); numericUpDownPillsPerDay = new NumericUpDown();
dataGridViewAllDiagnoses = new DataGridView(); dataGridView = new DataGridView();
dataGridViewAddrdDiagnoses = new DataGridView();
buttonAddElement = new Button(); buttonAddElement = new Button();
buttonrRemoveElement = new Button(); buttonRemoveElement = new Button();
((System.ComponentModel.ISupportInitialize)numericUpDownDaysCount).BeginInit(); ((System.ComponentModel.ISupportInitialize)numericUpDownDaysCount).BeginInit();
((System.ComponentModel.ISupportInitialize)numericUpDownPillsPerDay).BeginInit(); ((System.ComponentModel.ISupportInitialize)numericUpDownPillsPerDay).BeginInit();
((System.ComponentModel.ISupportInitialize)dataGridViewAllDiagnoses).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
((System.ComponentModel.ISupportInitialize)dataGridViewAddrdDiagnoses).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// buttonApply // buttonApply
// //
buttonApply.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; buttonApply.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonApply.Location = new Point(413, 364); buttonApply.Location = new Point(446, 362);
buttonApply.Name = "buttonApply"; buttonApply.Name = "buttonApply";
buttonApply.Size = new Size(94, 29); buttonApply.Size = new Size(94, 29);
buttonApply.TabIndex = 0; buttonApply.TabIndex = 0;
@ -59,7 +57,7 @@
// buttonCancel // buttonCancel
// //
buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonCancel.Location = new Point(513, 364); buttonCancel.Location = new Point(546, 362);
buttonCancel.Name = "buttonCancel"; buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(94, 29); buttonCancel.Size = new Size(94, 29);
buttonCancel.TabIndex = 1; buttonCancel.TabIndex = 1;
@ -101,7 +99,7 @@
comboBoxRecipe.FormattingEnabled = true; comboBoxRecipe.FormattingEnabled = true;
comboBoxRecipe.Location = new Point(78, 72); comboBoxRecipe.Location = new Point(78, 72);
comboBoxRecipe.Name = "comboBoxRecipe"; comboBoxRecipe.Name = "comboBoxRecipe";
comboBoxRecipe.Size = new Size(529, 28); comboBoxRecipe.Size = new Size(562, 28);
comboBoxRecipe.TabIndex = 5; comboBoxRecipe.TabIndex = 5;
// //
// numericUpDownDaysCount // numericUpDownDaysCount
@ -109,7 +107,7 @@
numericUpDownDaysCount.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; numericUpDownDaysCount.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
numericUpDownDaysCount.Location = new Point(235, 7); numericUpDownDaysCount.Location = new Point(235, 7);
numericUpDownDaysCount.Name = "numericUpDownDaysCount"; numericUpDownDaysCount.Name = "numericUpDownDaysCount";
numericUpDownDaysCount.Size = new Size(372, 27); numericUpDownDaysCount.Size = new Size(405, 27);
numericUpDownDaysCount.TabIndex = 6; numericUpDownDaysCount.TabIndex = 6;
// //
// numericUpDownPillsPerDay // numericUpDownPillsPerDay
@ -117,56 +115,48 @@
numericUpDownPillsPerDay.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; numericUpDownPillsPerDay.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
numericUpDownPillsPerDay.Location = new Point(235, 37); numericUpDownPillsPerDay.Location = new Point(235, 37);
numericUpDownPillsPerDay.Name = "numericUpDownPillsPerDay"; numericUpDownPillsPerDay.Name = "numericUpDownPillsPerDay";
numericUpDownPillsPerDay.Size = new Size(372, 27); numericUpDownPillsPerDay.Size = new Size(405, 27);
numericUpDownPillsPerDay.TabIndex = 7; numericUpDownPillsPerDay.TabIndex = 7;
// //
// dataGridViewAllDiagnoses // dataGridView
// //
dataGridViewAllDiagnoses.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
dataGridViewAllDiagnoses.Location = new Point(12, 106); dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewAllDiagnoses.Name = "dataGridViewAllDiagnoses"; dataGridView.Location = new Point(12, 119);
dataGridViewAllDiagnoses.RowHeadersWidth = 51; dataGridView.Name = "dataGridView";
dataGridViewAllDiagnoses.RowTemplate.Height = 29; dataGridView.RowHeadersWidth = 51;
dataGridViewAllDiagnoses.Size = new Size(247, 235); dataGridView.RowTemplate.Height = 29;
dataGridViewAllDiagnoses.TabIndex = 8; dataGridView.Size = new Size(475, 221);
// dataGridView.TabIndex = 8;
// dataGridViewAddrdDiagnoses
//
dataGridViewAddrdDiagnoses.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewAddrdDiagnoses.Location = new Point(329, 106);
dataGridViewAddrdDiagnoses.Name = "dataGridViewAddrdDiagnoses";
dataGridViewAddrdDiagnoses.RowHeadersWidth = 51;
dataGridViewAddrdDiagnoses.RowTemplate.Height = 29;
dataGridViewAddrdDiagnoses.Size = new Size(278, 235);
dataGridViewAddrdDiagnoses.TabIndex = 9;
// //
// buttonAddElement // buttonAddElement
// //
buttonAddElement.Location = new Point(265, 168); buttonAddElement.Anchor = AnchorStyles.Right;
buttonAddElement.Location = new Point(518, 140);
buttonAddElement.Name = "buttonAddElement"; buttonAddElement.Name = "buttonAddElement";
buttonAddElement.Size = new Size(58, 29); buttonAddElement.Size = new Size(94, 55);
buttonAddElement.TabIndex = 10; buttonAddElement.TabIndex = 9;
buttonAddElement.Text = "=>"; buttonAddElement.Text = "Добавить болезнь";
buttonAddElement.UseVisualStyleBackColor = true; buttonAddElement.UseVisualStyleBackColor = true;
// //
// buttonrRemoveElement // buttonRemoveElement
// //
buttonrRemoveElement.Location = new Point(265, 241); buttonRemoveElement.Anchor = AnchorStyles.Right;
buttonrRemoveElement.Name = "buttonrRemoveElement"; buttonRemoveElement.Location = new Point(518, 243);
buttonrRemoveElement.Size = new Size(58, 29); buttonRemoveElement.Name = "buttonRemoveElement";
buttonrRemoveElement.TabIndex = 11; buttonRemoveElement.Size = new Size(94, 56);
buttonrRemoveElement.Text = "<="; buttonRemoveElement.TabIndex = 10;
buttonrRemoveElement.UseVisualStyleBackColor = true; buttonRemoveElement.Text = "Удалить болезнь";
buttonRemoveElement.UseVisualStyleBackColor = true;
// //
// FormCourse // FormCourse
// //
AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(619, 405); ClientSize = new Size(652, 403);
Controls.Add(buttonrRemoveElement); Controls.Add(buttonRemoveElement);
Controls.Add(buttonAddElement); Controls.Add(buttonAddElement);
Controls.Add(dataGridViewAddrdDiagnoses); Controls.Add(dataGridView);
Controls.Add(dataGridViewAllDiagnoses);
Controls.Add(numericUpDownPillsPerDay); Controls.Add(numericUpDownPillsPerDay);
Controls.Add(numericUpDownDaysCount); Controls.Add(numericUpDownDaysCount);
Controls.Add(comboBoxRecipe); Controls.Add(comboBoxRecipe);
@ -175,12 +165,12 @@
Controls.Add(labelDaysCount); Controls.Add(labelDaysCount);
Controls.Add(buttonCancel); Controls.Add(buttonCancel);
Controls.Add(buttonApply); Controls.Add(buttonApply);
MinimumSize = new Size(670, 450);
Name = "FormCourse"; Name = "FormCourse";
Text = "Редактировать курс"; Text = "Редактировать курс";
((System.ComponentModel.ISupportInitialize)numericUpDownDaysCount).EndInit(); ((System.ComponentModel.ISupportInitialize)numericUpDownDaysCount).EndInit();
((System.ComponentModel.ISupportInitialize)numericUpDownPillsPerDay).EndInit(); ((System.ComponentModel.ISupportInitialize)numericUpDownPillsPerDay).EndInit();
((System.ComponentModel.ISupportInitialize)dataGridViewAllDiagnoses).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
((System.ComponentModel.ISupportInitialize)dataGridViewAddrdDiagnoses).EndInit();
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
} }
@ -195,9 +185,8 @@
private ComboBox comboBoxRecipe; private ComboBox comboBoxRecipe;
private NumericUpDown numericUpDownDaysCount; private NumericUpDown numericUpDownDaysCount;
private NumericUpDown numericUpDownPillsPerDay; private NumericUpDown numericUpDownPillsPerDay;
private DataGridView dataGridViewAllDiagnoses; private DataGridView dataGridView;
private DataGridView dataGridViewAddrdDiagnoses;
private Button buttonAddElement; private Button buttonAddElement;
private Button buttonrRemoveElement; private Button buttonRemoveElement;
} }
} }