private void ListVendorsRibnBtn_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.ListVendors) == EventStatus.Permit) { ListVendors aListVendor = new ListVendors(); __AddTabPage(aListVendor, __VendorsColor); } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void ListVendorsBtn_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.ListVendors) == EventStatus.Permit) { ListVendors aListVendors = new ListVendors(); // aListVendors.MdiParent = Helper.Instance.ActiveMainWindow; aListVendors.Show(); } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }