コード例 #1
0
        private void AddNewItemBtn_Click(object sender, EventArgs e)
        {
            AddNewItem aAddNewItem = new AddNewItem();

            aAddNewItem.Show();
            aAddNewItem.MdiParent = this;
            UpdateMain();
        }
コード例 #2
0
 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);
     }
 }