Example #1
0
        private void GetPatientsB_Click(object sender, EventArgs e)
        {
            ControllerObj = new Controller();
            DataTable DT = ControllerObj.GetPatients();

            PatientsDG.DataSource = DT;
            PatientsDG.Refresh();
        }
Example #2
0
        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();
            }
        }