private void btnUpdate_Click(object sender, EventArgs e) { frmMain_Load(sender, e); // If have change infomation try { if (this.tbxIDPatient.Enabled) { 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 = tbxIDRoom.Text; if (this.radMale.Checked) { patientInfo.Sex = "Man"; } else { patientInfo.Sex = "Woman"; } patientInfo.DateOfBirth = this.dtBirthday.Value; lstPatient.ChangeInfoPatient(patientInfo); } else { } } catch { } }