private void AddNewItemBtn_Click(object sender, EventArgs e) { AddNewItem aAddNewItem = new AddNewItem(); aAddNewItem.Show(); aAddNewItem.MdiParent = this; UpdateMain(); }
private void AddNewItemRibnBtn_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.AddNewItem) == EventStatus.Permit) { AddNewItem aAddNewItem = new AddNewItem(); __AddTabPage(aAddNewItem, __InventoryColor); } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void addNewItemToolStripMenuItem_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.AddNewItem) == EventStatus.Permit) { AddNewItem aAddNewItem = new AddNewItem(); //aAddNewItem.MdiParent = Helper.Instance.ActiveMainWindow; aAddNewItem.Show(); } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }