Esempio n. 1
0
        private void GetDonorsB_Click(object sender, EventArgs e)
        {
            ControllerObj = new Controller();
            DataTable DT = ControllerObj.GetDonors();

            DonorsDG.DataSource = DT;
            DonorsDG.Refresh();
        }
Esempio n. 2
0
        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();
            }
        }