private void addCustomerPaymentToolStripMenuItem_Click(object sender, EventArgs e) { AddCustomerPayment aAddCustomerPayment = new AddCustomerPayment(); // aAddCustomerPayment.MdiParent = Helper.Instance.ActiveMainWindow; aAddCustomerPayment.Show(); }
private void AddCustomerPaymentRibnBtn_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.AddCustomerPayment) == EventStatus.Permit) { AddCustomerPayment aAddCustomerPayment = new AddCustomerPayment(); __AddTabPage(aAddCustomerPayment, __CustomersColor); } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }