private void btnVattu_ItemClick(object sender, ItemClickEventArgs e) { frmVatLieu f = new frmVatLieu(); f.MdiParent = this; f.Show(); }
private void bbiVatLieu_ItemClick(object sender, ItemClickEventArgs e) { if (_khonvl == "True" || phanquyen == "fullcontrol") { var frm = new frmVatLieu(); if (ExistForm(frm)) { return; } frm.MdiParent = this; frm.Show(); } else { MessageBox.Show("Bạn không thuộc bộ phận Kho"); } }