From 8016c9316606ff2c661b6d41facb982a9c4d9f73 Mon Sep 17 00:00:00 2001 From: Bulat Date: Fri, 22 Nov 2024 10:09:16 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=82=D0=BE=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/FormDrug.Designer.cs | 16 ++++++++-------- .../Forms/FormDrugs.cs | 10 +++++++++- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/RegistrationPatientsPolyclinic/RegistrationPatientsPolyclinic/Forms/FormDrug.Designer.cs b/RegistrationPatientsPolyclinic/RegistrationPatientsPolyclinic/Forms/FormDrug.Designer.cs index 7c6a744..ca35cdc 100644 --- a/RegistrationPatientsPolyclinic/RegistrationPatientsPolyclinic/Forms/FormDrug.Designer.cs +++ b/RegistrationPatientsPolyclinic/RegistrationPatientsPolyclinic/Forms/FormDrug.Designer.cs @@ -41,7 +41,7 @@ // labelName // labelName.AutoSize = true; - labelName.Location = new Point(25, 34); + labelName.Location = new Point(23, 34); labelName.Name = "labelName"; labelName.Size = new Size(49, 20); labelName.TabIndex = 0; @@ -50,7 +50,7 @@ // labelGrams // labelGrams.AutoSize = true; - labelGrams.Location = new Point(25, 91); + labelGrams.Location = new Point(23, 148); labelGrams.Name = "labelGrams"; labelGrams.Size = new Size(51, 20); labelGrams.TabIndex = 1; @@ -59,7 +59,7 @@ // labelDescription // labelDescription.AutoSize = true; - labelDescription.Location = new Point(25, 142); + labelDescription.Location = new Point(16, 200); labelDescription.Name = "labelDescription"; labelDescription.Size = new Size(85, 20); labelDescription.TabIndex = 2; @@ -67,14 +67,14 @@ // // textBoxGrams // - textBoxGrams.Location = new Point(137, 88); + textBoxGrams.Location = new Point(137, 148); textBoxGrams.Name = "textBoxGrams"; textBoxGrams.Size = new Size(125, 27); textBoxGrams.TabIndex = 4; // // buttonSave // - buttonSave.Location = new Point(16, 317); + buttonSave.Location = new Point(7, 344); buttonSave.Name = "buttonSave"; buttonSave.Size = new Size(94, 29); buttonSave.TabIndex = 6; @@ -84,7 +84,7 @@ // // buttonCancel // - buttonCancel.Location = new Point(168, 317); + buttonCancel.Location = new Point(168, 344); buttonCancel.Name = "buttonCancel"; buttonCancel.Size = new Size(94, 29); buttonCancel.TabIndex = 7; @@ -94,7 +94,7 @@ // // textBoxDescription // - textBoxDescription.Location = new Point(137, 142); + textBoxDescription.Location = new Point(137, 200); textBoxDescription.Multiline = true; textBoxDescription.Name = "textBoxDescription"; textBoxDescription.Size = new Size(125, 123); @@ -105,7 +105,7 @@ checkedListBoxName.FormattingEnabled = true; checkedListBoxName.Location = new Point(137, 34); checkedListBoxName.Name = "checkedListBoxName"; - checkedListBoxName.Size = new Size(150, 26); + checkedListBoxName.Size = new Size(150, 92); checkedListBoxName.TabIndex = 9; // // FormDrug diff --git a/RegistrationPatientsPolyclinic/RegistrationPatientsPolyclinic/Forms/FormDrugs.cs b/RegistrationPatientsPolyclinic/RegistrationPatientsPolyclinic/Forms/FormDrugs.cs index cf7422c..23e5537 100644 --- a/RegistrationPatientsPolyclinic/RegistrationPatientsPolyclinic/Forms/FormDrugs.cs +++ b/RegistrationPatientsPolyclinic/RegistrationPatientsPolyclinic/Forms/FormDrugs.cs @@ -88,7 +88,15 @@ namespace RegistrationPatientsPolyclinic.Forms 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) // возвращает смог н извлечь или нет