Exemple #1
0
        private void ThemKH(object sender, EventArgs e)
        {
            frmThemKhoHang tkh = new frmThemKhoHang();

            tkh.ShowDialog();
            LoadData();
        }
Exemple #2
0
        private void Sua(object sender, EventArgs e)
        {
            KhoHang kh = new KhoHang()
            {
                MaKho     = gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Mã").ToString(),
                TenKho    = gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Tên").ToString(),
                LienHe    = gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Liên Hệ").ToString(),
                DienThoai = gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Điện Thoại").ToString(),
                GhiChu    = gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Ghi Chú").ToString()
                            //ConQuanLy = bool.Parse( gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Còn Quản Lý").ToString())
            };

            frmThemKhoHang tnh = new frmThemKhoHang(kh);

            tnh.ShowDialog();
            LoadData();
        }
Exemple #3
0
        private void ThemKH(object sender, EventArgs e)
        {
            frmThemKhoHang kh = new frmThemKhoHang();

            kh.ShowDialog();
        }
Exemple #4
0
        private void nbKhoHang_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frmThemKhoHang thh = new frmThemKhoHang();

            thh.ShowDialog();
        }