Exemplo n.º 1
0
        private void BtnThem_Click(object sender, EventArgs e)
        {
            frmThemSuaKhachHang frmtkh = new frmThemSuaKhachHang();

            frmtkh.ThemThanhCong += FillGridView;
            frmtkh.ThemThanhCong += NhatKyThem;
            frmtkh.ShowDialog();
        }
Exemplo n.º 2
0
        //private void BtnPhieuBanHang_Click(object sender, EventArgs e)
        //{

        //}

        private void BtnKhachHang_Click(object sender, EventArgs e)
        {
            frmThemSuaKhachHang frmkh = new frmThemSuaKhachHang();

            frmkh.ThemThanhCong += NapDuLieu;
            frmkh.ThemThanhCong += NhatKyThemKhachHang;
            frmkh.ShowDialog();
            NapDuLieu();
        }
Exemplo n.º 3
0
 private void LkueTenKH_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index == 0)
     {
         frmThemSuaKhachHang frmkh = new frmThemSuaKhachHang();
         frmkh.ThemThanhCong += NapDuLieu;
         frmkh.ThemThanhCong += NhatKyThemKhachHang;
         frmkh.ShowDialog();
         NapDuLieu();
     }
 }
Exemplo n.º 4
0
        private void BtnSua_Click(object sender, EventArgs e)
        {
            if (CurRowIndex >= 0)
            {
                KhachHang kh = LayKHDangChon();

                frmThemSuaKhachHang frmSua = new frmThemSuaKhachHang(kh);
                frmSua.CapNhatThanhCong += FillGridView;
                frmSua.CapNhatThanhCong += NhatKySua;
                frmSua.ShowDialog();
            }
        }