Exemplo n.º 1
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            frmThaoTacGV frmThem = new frmThaoTacGV(null, null, DateTime.Now, true, null, null, null, 1);

            frmThem.ShowDialog();
            Hienthi();
        }
Exemplo n.º 2
0
        private void btnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            VGiaoVien.frmThaoTacGV frm = new frmThaoTacGV(null);
            frm.ShowDialog();
            DataTable dt = sqlHelper.Query(_Query);

            Hienthi(dt);
        }
Exemplo n.º 3
0
        private void btnSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (IDmember == null)
            {
                MessageBox.Show("No Select!!", "Thông tin", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            VGiaoVien.frmThaoTacGV frm = new frmThaoTacGV(IDmember);
            frm.ShowDialog();
            DataTable dt = sqlHelper.Query(_Query);

            Hienthi(dt);
        }
Exemplo n.º 4
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (IDmember == null)
     {
         MessageBox.Show("No Select!!", "Thông tin", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     else
     {
         frmThaoTacGV frmSua = new frmThaoTacGV(MaGV, HoTen, NgaySinh, GioiTinh, Sdt, DiaChi, TenMon, 2);
         frmSua.ShowDialog();
         Hienthi();
     }
 }