private void Main_Load(object sender, EventArgs e) { NewPatient np = new NewPatient(); np.ShowDialog(); Program.patient.Reflesh = false; patientDataLabel.Text = Program.patient.Surname + " " + Program.patient.Name + " " + Program.patient.Otchestvo + " " + Program.patient.BirthDate.ToShortDateString(); //Изначально все лайоуты скрыты OverallResilience.Hide(); WalkViolation.Hide(); MalnutriciaPart1.Hide(); MalnutriciaPart2.Hide(); Cognitive.Hide(); }
private void NewPatientButton_Click(object sender, EventArgs e) { //Вызов окна создания нового пациента NewPatient np = new NewPatient(); np.ShowDialog(); patientDataLabel.Text = Program.patient.Surname + " " + Program.patient.Name + " " + Program.patient.Otchestvo + " " + Program.patient.BirthDate.ToShortDateString(); if (Program.patient.Reflesh) { s1.Text = null; s2.Text = null; s3.Text = null; s4.Text = null; s5.Text = null; orcb1.SelectedIndex = -1; orcb2.SelectedIndex = -1; orcb3.SelectedIndex = -1; orcb4.SelectedIndex = -1; orcb5.SelectedIndex = -1; orcb6.SelectedIndex = -1; orcb7.SelectedIndex = -1; orcb8.SelectedIndex = -1; orcb9.SelectedIndex = -1; orcb10.SelectedIndex = -1; orcb11.SelectedIndex = -1; orcb12.SelectedIndex = -1; orcb13.SelectedIndex = -1; orcb14.SelectedIndex = -1; orcb15.SelectedIndex = -1; OverallResilience.Hide(); wvcb12.SelectedIndex = -1; wvcb11.SelectedIndex = -1; wvcb10.SelectedIndex = -1; wvcb9.SelectedIndex = -1; wvcb8.SelectedIndex = -1; wvcb7.SelectedIndex = -1; wvcb6.SelectedIndex = -1; wvcb5.SelectedIndex = -1; wvcb4.SelectedIndex = -1; wvcb3.SelectedIndex = -1; wvcb2.SelectedIndex = -1; wvcb1.SelectedIndex = -1; WalkViolation.Hide(); mcb6.SelectedIndex = -1; mcb5.SelectedIndex = -1; mcb4.SelectedIndex = -1; mcb3.SelectedIndex = -1; mcb2.SelectedIndex = -1; mcb1.SelectedIndex = -1; MalnutriciaPart1.Hide(); m2cb12.SelectedIndex = -1; m2cb11.SelectedIndex = -1; m2cb10.SelectedIndex = -1; m2cb9.SelectedIndex = -1; m2cb8.SelectedIndex = -1; m2cb7.SelectedIndex = -1; m2cb6.SelectedIndex = -1; m2cb5.SelectedIndex = -1; m2cb4.SelectedIndex = -1; m2cb3.SelectedIndex = -1; m2cb2.SelectedIndex = -1; m2cb1.SelectedIndex = -1; MalnutriciaPart2.Hide(); ccb1.SelectedIndex = -1; ccb2.SelectedIndex = -1; ccb3.SelectedIndex = -1; ccb4.SelectedIndex = -1; ccb5.SelectedIndex = -1; ccb6.SelectedIndex = -1; ccb7.SelectedIndex = -1; ccb8.SelectedIndex = -1; ccb9.SelectedIndex = -1; ccb10.SelectedIndex = -1; ccb11.SelectedIndex = -1; Cognitive.Hide(); Program.patient.Reflesh = false; } }