private void GetDonorsB_Click(object sender, EventArgs e) { ControllerObj = new Controller(); DataTable DT = ControllerObj.GetDonors(); DonorsDG.DataSource = DT; DonorsDG.Refresh(); }
private void DelDonB_Click(object sender, EventArgs e) { int c = ControllerObj.DeleteDonUser(ID3); if (c == 0) { MessageBox.Show("failed"); } else { MessageBox.Show("successfully!"); DataTable DT = ControllerObj.GetDonors(); DonorsDG.DataSource = DT; DonorsDG.Refresh(); } }