Exemplo n.º 1
0
 private void cboAccountingObjectId_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index.Equals(1))
     {
         FrmXtraAccountingObjectDetail frmAccountingObjectDetail = new FrmXtraAccountingObjectDetail();
         frmAccountingObjectDetail.ShowDialog();
         if (frmAccountingObjectDetail.CloseBox)
         {
             if (!string.IsNullOrEmpty(GlobalVariable.AccountingObjectIDInventoryItemDetailForm))
             {
                 _accountingObjectsPresenters.DisplayActive(true);
                 cboAccountingObjectId.EditValue = GlobalVariable.AccountingObjectIDInventoryItemDetailForm;
             }
         }
     }
 }
Exemplo n.º 2
0
 private void lookUpEditAccountingObject_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index.Equals(1))
     {
         using (var frmDetail = new FrmXtraAccountingObjectDetail())
         {
             frmDetail.ShowDialog();
             if (frmDetail.CloseBox)
             {
                 if (!string.IsNullOrEmpty(GlobalVariable.AccountingObjectIDInventoryItemDetailForm))
                 {
                     _accountingObjectsPresenter.Display();
                     lkVendor.EditValue = GlobalVariable.AccountingObjectIDInventoryItemDetailForm;
                 }
             }
         }
     }
 }