private void dgvKhachHang_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex == dgvKhachHang.Rows.Count - 1)
     {
         frmChitietKhachhang f1 = new frmChitietKhachhang();
         Handling.FormHandling.PreventFormMultipleTimes("Khách Hàng", f1, "Khách hàng");
     }
 }
示例#2
0
        public void btnList_Click(object sender, EventArgs e)
        {
            //
            frmMain formMain = (frmMain)frmMain.ActiveForm;

            formMain.panelKetquaTimKiem.Controls.Clear();
            formMain.panelNhiepvu.Controls.Clear();
            formMain.panelMain.Controls.Clear();
            formMain.panelChucnang.Controls.Clear();
            //
            frmTimkiemKhachhang frmTimkiemKhachhang = new frmTimkiemKhachhang();

            frmTimkiemKhachhang.gbxTimkiem.Dock = DockStyle.Fill;
            formMain.panelNhiepvu.Controls.Add(frmTimkiemKhachhang.gbxTimkiem);
            //
            frmChitietKhachhang frmChitietKhachhang = new frmChitietKhachhang();

            frmChitietKhachhang.gbxChitiet.Dock = DockStyle.Fill;
            formMain.panelMain.Controls.Add(frmChitietKhachhang.gbxChitiet);
            //

            //
        }
        private void lblIntoKhachHang_Click(object sender, EventArgs e)
        {
            frmChitietKhachhang f1 = new frmChitietKhachhang();

            Handling.FormHandling.PreventFormMultipleTimes(f1, "Khách hàng");
        }