Exemple #1
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            PatientInfo patientInfo = new PatientInfo();

            patientInfo.IDPatient   = tbxIDPatient.Text;
            patientInfo.NamePatient = tbxNamePatient.Text;
            patientInfo.Phone       = tbxPhone.Text;
            patientInfo.Email       = tbxEmail.Text;
            patientInfo.Address     = tbxAddress.Text;
            patientInfo.Diagnoseill = tbxDiagnoseill.Text;
            patientInfo.IDRoom      = result;
            if (this.radMale.Checked)
            {
                patientInfo.Sex = "Man";
            }
            else
            {
                patientInfo.Sex = "Woman";
            }
            patientInfo.DateOfBirth = dtBirthday.Value;
            lstPatient.Add1Patient(patientInfo);
        }