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

This commit is contained in:
Никита Потапов 2024-04-30 10:41:25 +04:00
parent 3681c58f16
commit 3c925c656f

View File

@ -37,8 +37,9 @@
numericUpDownDaysCount = new NumericUpDown(); numericUpDownDaysCount = new NumericUpDown();
numericUpDownPillsPerDay = new NumericUpDown(); numericUpDownPillsPerDay = new NumericUpDown();
dataGridView = new DataGridView(); dataGridView = new DataGridView();
buttonAddElement = new Button(); buttonAddDiagnose = new Button();
buttonRemoveElement = new Button(); buttonRemoveDiagnose = new Button();
labelTableName = new Label();
((System.ComponentModel.ISupportInitialize)numericUpDownDaysCount).BeginInit(); ((System.ComponentModel.ISupportInitialize)numericUpDownDaysCount).BeginInit();
((System.ComponentModel.ISupportInitialize)numericUpDownPillsPerDay).BeginInit(); ((System.ComponentModel.ISupportInitialize)numericUpDownPillsPerDay).BeginInit();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
@ -122,40 +123,50 @@
// //
dataGridView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; dataGridView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Location = new Point(12, 119); dataGridView.Location = new Point(12, 135);
dataGridView.Name = "dataGridView"; dataGridView.Name = "dataGridView";
dataGridView.RowHeadersWidth = 51; dataGridView.RowHeadersWidth = 51;
dataGridView.RowTemplate.Height = 29; dataGridView.RowTemplate.Height = 29;
dataGridView.Size = new Size(475, 221); dataGridView.Size = new Size(475, 221);
dataGridView.TabIndex = 8; dataGridView.TabIndex = 8;
// //
// buttonAddElement // buttonAddDiagnose
// //
buttonAddElement.Anchor = AnchorStyles.Right; buttonAddDiagnose.Anchor = AnchorStyles.Top | AnchorStyles.Right;
buttonAddElement.Location = new Point(518, 140); buttonAddDiagnose.Location = new Point(518, 140);
buttonAddElement.Name = "buttonAddElement"; buttonAddDiagnose.Name = "buttonAddDiagnose";
buttonAddElement.Size = new Size(94, 55); buttonAddDiagnose.Size = new Size(94, 55);
buttonAddElement.TabIndex = 9; buttonAddDiagnose.TabIndex = 9;
buttonAddElement.Text = "Добавить болезнь"; buttonAddDiagnose.Text = "Добавить болезнь";
buttonAddElement.UseVisualStyleBackColor = true; buttonAddDiagnose.UseVisualStyleBackColor = true;
// //
// buttonRemoveElement // buttonRemoveDiagnose
// //
buttonRemoveElement.Anchor = AnchorStyles.Right; buttonRemoveDiagnose.Anchor = AnchorStyles.Top | AnchorStyles.Right;
buttonRemoveElement.Location = new Point(518, 243); buttonRemoveDiagnose.Location = new Point(518, 243);
buttonRemoveElement.Name = "buttonRemoveElement"; buttonRemoveDiagnose.Name = "buttonRemoveDiagnose";
buttonRemoveElement.Size = new Size(94, 56); buttonRemoveDiagnose.Size = new Size(94, 56);
buttonRemoveElement.TabIndex = 10; buttonRemoveDiagnose.TabIndex = 10;
buttonRemoveElement.Text = "Удалить болезнь"; buttonRemoveDiagnose.Text = "Удалить болезнь";
buttonRemoveElement.UseVisualStyleBackColor = true; buttonRemoveDiagnose.UseVisualStyleBackColor = true;
//
// labelTableName
//
labelTableName.AutoSize = true;
labelTableName.Location = new Point(12, 112);
labelTableName.Name = "labelTableName";
labelTableName.Size = new Size(68, 20);
labelTableName.TabIndex = 11;
labelTableName.Text = "Болезни";
// //
// FormCourse // FormCourse
// //
AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(652, 403); ClientSize = new Size(652, 403);
Controls.Add(buttonRemoveElement); Controls.Add(labelTableName);
Controls.Add(buttonAddElement); Controls.Add(buttonRemoveDiagnose);
Controls.Add(buttonAddDiagnose);
Controls.Add(dataGridView); Controls.Add(dataGridView);
Controls.Add(numericUpDownPillsPerDay); Controls.Add(numericUpDownPillsPerDay);
Controls.Add(numericUpDownDaysCount); Controls.Add(numericUpDownDaysCount);
@ -186,7 +197,8 @@
private NumericUpDown numericUpDownDaysCount; private NumericUpDown numericUpDownDaysCount;
private NumericUpDown numericUpDownPillsPerDay; private NumericUpDown numericUpDownPillsPerDay;
private DataGridView dataGridView; private DataGridView dataGridView;
private Button buttonAddElement; private Button buttonAddDiagnose;
private Button buttonRemoveElement; private Button buttonRemoveDiagnose;
private Label labelTableName;
} }
} }