From a56d1f3a43b8c6a2a455345d741f1ee31342fd6d Mon Sep 17 00:00:00 2001 From: Adelina888 Date: Sun, 17 Nov 2024 19:20:22 +0400 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=BE=D1=87=D0=BD=D0=BE=20=D0=B3=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectPolyclinic/Forms/FormDoctor.Designer.cs | 3 ++- ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.cs | 9 +++++++-- .../ProjectPolyclinic/Forms/FormDoctors.Designer.cs | 1 + .../ProjectPolyclinic/Forms/FormMedication.Designer.cs | 1 + .../Forms/FormProfessionalDevelopment.Designer.cs | 1 + .../Forms/FormProfessionalDevelopments.Designer.cs | 1 + .../ProjectPolyclinic/Forms/FormVisiting.Designer.cs | 1 + 7 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.Designer.cs b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.Designer.cs index 54e45a5..485c331 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.Designer.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.Designer.cs @@ -100,7 +100,7 @@ // // buttonCancel // - buttonCancel.Location = new Point(194, 153); + buttonCancel.Location = new Point(288, 153); buttonCancel.Name = "buttonCancel"; buttonCancel.Size = new Size(95, 34); buttonCancel.TabIndex = 7; @@ -122,6 +122,7 @@ Controls.Add(label1); Controls.Add(comboBoxSpec); Name = "FormDoctor"; + StartPosition = FormStartPosition.CenterParent; Text = "Врач"; ResumeLayout(false); PerformLayout(); diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.cs b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.cs index 6f86d89..252af30 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.cs @@ -33,7 +33,7 @@ namespace ProjectPolyclinic.Forms comboBoxSpec.SelectedItem = doctor.Specialization; _doctorId = value; } - catch(Exception ex) + catch (Exception ex) { MessageBox.Show(ex.Message, "Ошибка при полученииданных", MessageBoxButtons.OK, MessageBoxIcon.Error); return; @@ -77,7 +77,12 @@ namespace ProjectPolyclinic.Forms } private void ButtonCancel_Click(object sender, EventArgs e) => Close(); - private Doctor CreateDoctor(int id) => Doctor.CreateEntity(id, textBoxNameDoctor.Text, textBoxName2Doctor.Text, + private Doctor CreateDoctor(int id) => Doctor.CreateEntity(id, textBoxNameDoctor.Text, textBoxName2Doctor.Text, (Specialization)comboBoxSpec.SelectedItem!); + + private void FormDoctor_Load(object sender, EventArgs e) + { + + } } } diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctors.Designer.cs b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctors.Designer.cs index b64ce05..79aeae0 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctors.Designer.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctors.Designer.cs @@ -107,6 +107,7 @@ Controls.Add(dataGridViewData); Controls.Add(panel1); Name = "FormDoctors"; + StartPosition = FormStartPosition.CenterParent; Text = "Врачи"; Load += FormDoctors_Load; panel1.ResumeLayout(false); diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormMedication.Designer.cs b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormMedication.Designer.cs index a3b7b8c..6e3948e 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormMedication.Designer.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormMedication.Designer.cs @@ -122,6 +122,7 @@ Controls.Add(textBoxDosing); Controls.Add(checkedListBoxMedicinesType); Name = "FormMedication"; + StartPosition = FormStartPosition.CenterParent; Text = "Медикамент"; ResumeLayout(false); PerformLayout(); diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormProfessionalDevelopment.Designer.cs b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormProfessionalDevelopment.Designer.cs index 76a6482..2e9069f 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormProfessionalDevelopment.Designer.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormProfessionalDevelopment.Designer.cs @@ -104,6 +104,7 @@ Controls.Add(label2); Controls.Add(label1); Name = "FormProfessionalDevelopment"; + StartPosition = FormStartPosition.CenterParent; Text = "Повышение квалификации врача"; ResumeLayout(false); PerformLayout(); diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormProfessionalDevelopments.Designer.cs b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormProfessionalDevelopments.Designer.cs index 295c445..c3e450f 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormProfessionalDevelopments.Designer.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormProfessionalDevelopments.Designer.cs @@ -81,6 +81,7 @@ Controls.Add(dataGridViewData); Controls.Add(panel1); Name = "FormProfessional_developments"; + StartPosition = FormStartPosition.CenterParent; Text = "Повышение квалификации врачей"; Load += FormProfessionalDevelopments_Load; panel1.ResumeLayout(false); diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormVisiting.Designer.cs b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormVisiting.Designer.cs index c91eb57..e303d2b 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormVisiting.Designer.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormVisiting.Designer.cs @@ -190,6 +190,7 @@ Controls.Add(label2); Controls.Add(label1); Name = "FormVisiting"; + StartPosition = FormStartPosition.CenterParent; Text = "Визит"; ((System.ComponentModel.ISupportInitialize)dataGridViewMedicines).EndInit(); groupBoxMedicines.ResumeLayout(false);