Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 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;
     }
 }