private void PurchaseVoucherBtn_Click(object sender, EventArgs e) { PurchaseVoucher aPurchaseVoucher = new PurchaseVoucher(); aPurchaseVoucher.Show(); //aPurchaseVoucher.MdiParent = this; UpdateMain(); }
private void newPurchaseVoucherToolStripMenuItem_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.PurchaseVoucher) == EventStatus.Permit) { PurchaseVoucher aPurchaseVoucher = new PurchaseVoucher(); aPurchaseVoucher.Show(); // aPurchaseVoucher.MdiParent = Helper.Instance.ActiveMainWindow; } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }