private void btTaoMoi_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { string query = "select MaCTQ from CTQuyen where (MaQuyen = '1001' and MaNV= '" + LopTinh.NhanMaNV + "')"; DataTable tbq = kn.NhanDuLieu(query); int dem = tbq.Rows.Count; if (LopTinh.NhanMaNV == "10000" || dem > 0) { var frmDKSP = new frmSanPham(); if (ExistForm(frmDKSP)) { return; } frmDKSP.MdiParent = this; frmDKSP.Show(); } else { var frmDKSP = new frmSanPham(); if (ExistForm(frmDKSP)) { return; } frmDKSP.MdiParent = this; frmDKSP.Show(); frmDKSP.ucSanPham.Enabled = false; frmDKSP.ucSPColor.Enabled = false; frmDKSP.ucSPSize.Enabled = false; } }
private void btTaoMoi_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var frmDKSP = new frmSanPham(); if (ExistForm(frmDKSP)) { return; } frmDKSP.MdiParent = this; frmDKSP.Show(); }
private void danhSachMătHangToolStripMenuItem_Click(object sender, EventArgs e) { frmSanPham sp = new frmSanPham(); sp.Show(); }
private void menuItemSP_Click(object sender, EventArgs e) { frmSanPham frmSP = new frmSanPham(); frmSP.ShowDialog(); }