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) // возвращает смог н извлечь или нет