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; } } } }
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; } } } } }