private void GetPatientsB_Click(object sender, EventArgs e) { ControllerObj = new Controller(); DataTable DT = ControllerObj.GetPatients(); PatientsDG.DataSource = DT; PatientsDG.Refresh(); }
private void DelPatB_Click(object sender, EventArgs e) { int c = ControllerObj.DeletePUser(ID2); if (c == 0) { MessageBox.Show("failed"); } else { MessageBox.Show("successfully!"); DataTable DT = ControllerObj.GetPatients(); PatientsDG.DataSource = DT; PatientsDG.Refresh(); } }