Esempio n. 1
0
 private void CButton_Click(object sender, EventArgs e)
 {
     OverallResilience.Hide();
     WalkViolation.Hide();
     MalnutriciaPart1.Hide();
     MalnutriciaPart2.Hide();
     Cognitive.Show();
 }
Esempio n. 2
0
        //Расчет устойчивости
        private void ORSaveButton_Click(object sender, EventArgs e)
        {
            //Проверка всех комбобоксов на заполненность
            if (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();

                //Расчет суммы баллов
                Program.patient.OverallResilience =
                    orcb1.SelectedIndex +
                    orcb2.SelectedIndex +
                    orcb3.SelectedIndex +
                    orcb4.SelectedIndex +
                    orcb5.SelectedIndex +
                    orcb6.SelectedIndex +
                    orcb7.SelectedIndex +
                    orcb8.SelectedIndex +
                    orcb9.SelectedIndex +
                    orcb10.SelectedIndex +
                    orcb11.SelectedIndex +
                    orcb12.SelectedIndex +
                    orcb13.SelectedIndex +
                    orcb14.SelectedIndex +
                    orcb15.SelectedIndex;
                Program.patient.OverallResiliencePassed = true;
                if (Program.patient.OverallResilience > 24)
                {
                    Program.patient.OverallResilience = 24;
                }
                MessageBox.Show("Набрано баллов: " + Program.patient.OverallResilience);
                checkMotorActivity();
                s1.Text = Program.patient.OverallResilience.ToString();
            }
            else
            {
                MessageBox.Show("Не все параметры выбраны!");
            }
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
        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;
            }
        }