コード例 #1
0
ファイル: Main2.cs プロジェクト: SariSultan/RMS
 private void EditBillRibnBtn_Click(object sender, EventArgs e)
 {
     if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.EditBills) == EventStatus.Permit)
     {
         ChooseBillToEdit aChooseBillToEdit = new ChooseBillToEdit();
         __AddTabPage(aChooseBillToEdit, __POSColor);
     }
     else
     {
         MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #2
0
 private void editBillToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.EditBills) == EventStatus.Permit)
         {
             ChooseBillToEdit aChooseBillToEdit = new ChooseBillToEdit();
             // aChooseBillToEdit.MdiParent = Helper.Instance.ActiveMainWindow;
             aChooseBillToEdit.Show();
         }
         else
         {
             MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
     catch (Exception)
     {
         throw;
     }
 }