Пример #1
0
        private void btnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmThaoTacHS frm = new frmThaoTacHS(null);

            frm.ShowDialog();
            Hienthi(S);
        }
Пример #2
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            frmThaoTacHS frmThem = new frmThaoTacHS(null, null, null, true, null, DateTime.Now, null, null, null, 1);

            frmThem.ShowDialog();
            Hienthi();
        }
Пример #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;
            }
            frmThaoTacHS frm = new frmThaoTacHS(IDmember);

            frm.ShowDialog();
            Hienthi(S);
        }
Пример #4
0
 private void btnSua_Click(object sender, EventArgs e)
 {
     if (IDmember == null)
     {
         MessageBox.Show("Vui lòng chọn 1 Bản ghi", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     else
     {
         frmThaoTacHS frmSua = new frmThaoTacHS(MaHS, HoTen, DiaChi, GioiTinh, Sdt, NgaySinh, TenPhuHuynh, SDTphuHuynh, TenLop, 2);
         frmSua.ShowDialog();
         Hienthi();
     }
 }