This commit is contained in:
Bulat 2024-11-22 10:09:16 +04:00
parent 21bbcf3794
commit 8016c93166
2 changed files with 17 additions and 9 deletions

View File

@ -41,7 +41,7 @@
// labelName // labelName
// //
labelName.AutoSize = true; labelName.AutoSize = true;
labelName.Location = new Point(25, 34); labelName.Location = new Point(23, 34);
labelName.Name = "labelName"; labelName.Name = "labelName";
labelName.Size = new Size(49, 20); labelName.Size = new Size(49, 20);
labelName.TabIndex = 0; labelName.TabIndex = 0;
@ -50,7 +50,7 @@
// labelGrams // labelGrams
// //
labelGrams.AutoSize = true; labelGrams.AutoSize = true;
labelGrams.Location = new Point(25, 91); labelGrams.Location = new Point(23, 148);
labelGrams.Name = "labelGrams"; labelGrams.Name = "labelGrams";
labelGrams.Size = new Size(51, 20); labelGrams.Size = new Size(51, 20);
labelGrams.TabIndex = 1; labelGrams.TabIndex = 1;
@ -59,7 +59,7 @@
// labelDescription // labelDescription
// //
labelDescription.AutoSize = true; labelDescription.AutoSize = true;
labelDescription.Location = new Point(25, 142); labelDescription.Location = new Point(16, 200);
labelDescription.Name = "labelDescription"; labelDescription.Name = "labelDescription";
labelDescription.Size = new Size(85, 20); labelDescription.Size = new Size(85, 20);
labelDescription.TabIndex = 2; labelDescription.TabIndex = 2;
@ -67,14 +67,14 @@
// //
// textBoxGrams // textBoxGrams
// //
textBoxGrams.Location = new Point(137, 88); textBoxGrams.Location = new Point(137, 148);
textBoxGrams.Name = "textBoxGrams"; textBoxGrams.Name = "textBoxGrams";
textBoxGrams.Size = new Size(125, 27); textBoxGrams.Size = new Size(125, 27);
textBoxGrams.TabIndex = 4; textBoxGrams.TabIndex = 4;
// //
// buttonSave // buttonSave
// //
buttonSave.Location = new Point(16, 317); buttonSave.Location = new Point(7, 344);
buttonSave.Name = "buttonSave"; buttonSave.Name = "buttonSave";
buttonSave.Size = new Size(94, 29); buttonSave.Size = new Size(94, 29);
buttonSave.TabIndex = 6; buttonSave.TabIndex = 6;
@ -84,7 +84,7 @@
// //
// buttonCancel // buttonCancel
// //
buttonCancel.Location = new Point(168, 317); buttonCancel.Location = new Point(168, 344);
buttonCancel.Name = "buttonCancel"; buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(94, 29); buttonCancel.Size = new Size(94, 29);
buttonCancel.TabIndex = 7; buttonCancel.TabIndex = 7;
@ -94,7 +94,7 @@
// //
// textBoxDescription // textBoxDescription
// //
textBoxDescription.Location = new Point(137, 142); textBoxDescription.Location = new Point(137, 200);
textBoxDescription.Multiline = true; textBoxDescription.Multiline = true;
textBoxDescription.Name = "textBoxDescription"; textBoxDescription.Name = "textBoxDescription";
textBoxDescription.Size = new Size(125, 123); textBoxDescription.Size = new Size(125, 123);
@ -105,7 +105,7 @@
checkedListBoxName.FormattingEnabled = true; checkedListBoxName.FormattingEnabled = true;
checkedListBoxName.Location = new Point(137, 34); checkedListBoxName.Location = new Point(137, 34);
checkedListBoxName.Name = "checkedListBoxName"; checkedListBoxName.Name = "checkedListBoxName";
checkedListBoxName.Size = new Size(150, 26); checkedListBoxName.Size = new Size(150, 92);
checkedListBoxName.TabIndex = 9; checkedListBoxName.TabIndex = 9;
// //
// FormDrug // FormDrug

View File

@ -88,7 +88,15 @@ namespace RegistrationPatientsPolyclinic.Forms
private void FormDrags_Load(object sender, EventArgs e) private void FormDrags_Load(object sender, EventArgs e)
{ {
try
{
LoadList();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Ошибка при загрузке",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
} }
private bool TryGetIdentifierFromSelectedRow(out int id) // возвращает смог н извлечь или нет private bool TryGetIdentifierFromSelectedRow(out int id) // возвращает смог н извлечь или нет