示例#1
0
 private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (isFormInactive(frm))
     {
         frm           = new Armazens();
         frm.MdiParent = this;
         frm.Show();
     }
 }
示例#2
0
 public void openInvoiceForm(string type, FrmInvoice frm)
 {
     if (UserCurrent.getCurrentUser().FlagAdmin == true)
     {
         if (isFormInactive(frm))
         {
             activeForm(frm = new FrmInvoice(type));
         }
     }
     else
     {
         if (UserCurrent.getPermission().Venda)
         {
             if (isFormInactive(frm))
             {
                 activeForm(frm = new FrmInvoice(type));
             }
         }
         else
         {
             MessageBox.Show("Não tem permissão para completar essa operação");
         }
     }
 }