private void ListBillsBtn_Click(object sender, EventArgs e) { ListBills aListBills = new ListBills(); aListBills.Show(); aListBills.MdiParent = this; UpdateMain(); }
private void ListBillsRibnBtn_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.ListBills) == EventStatus.Permit) { ListBills aListBills = new ListBills(); __AddTabPage(aListBills, __POSColor); } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void ListBillsBtn_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.ListBills) == EventStatus.Permit) { ListBills aListBills = new ListBills(); aListBills.Show(); // aListBills.MdiParent = Helper.Instance.ActiveMainWindow; // aListBills.Dock = DockStyle.Fill; } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }