示例#1
0
        private void GetDocsB_Click(object sender, EventArgs e)
        {
            ControllerObj = new Controller();
            DataTable DT = ControllerObj.GetDoctors();

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