コード例 #1
0
ファイル: Form3.cs プロジェクト: SpartanLines/Projects
        private void GetDocsB_Click(object sender, EventArgs e)
        {
            ControllerObj = new Controller();
            DataTable DT = ControllerObj.GetDoctors();

            DocsDG.DataSource = DT;
            DocsDG.Refresh();
        }
コード例 #2
0
ファイル: Form3.cs プロジェクト: SpartanLines/Projects
        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();
            }
        }