private void vendorsDebitCreditToolStripMenuItem_Click(object sender, EventArgs e) { VendorsDebitCredit aVendorDebitCredit = new VendorsDebitCredit(); // aVendorDebitCredit.MdiParent = Helper.Instance.ActiveMainWindow; aVendorDebitCredit.Show(); aVendorDebitCredit.WindowState = FormWindowState.Normal; }
private void VendorDebitCreditRbnBtn_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.VendorDebitCredit) == EventStatus.Permit) { VendorsDebitCredit aVendorDebitCredit = new VendorsDebitCredit(); __AddTabPage(aVendorDebitCredit, __VendorsColor); } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }