private void GetDocsB_Click(object sender, EventArgs e) { ControllerObj = new Controller(); DataTable DT = ControllerObj.GetDoctors(); DocsDG.DataSource = DT; DocsDG.Refresh(); }
private void DelDocB_Click(object sender, EventArgs e) { int c = ControllerObj.DeleteDocUser(ID1); if (c == 0) { MessageBox.Show("failed"); } else { MessageBox.Show("successfully!"); DataTable DT = ControllerObj.GetDoctors(); DocsDG.DataSource = DT; DocsDG.Refresh(); } }