private void cboSaleAccount_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Index.Equals(1)) { var frmAccountDetail = new FrmAccountDetail(); frmAccountDetail.ShowDialog(); if (frmAccountDetail.CloseBox) { if (!string.IsNullOrEmpty(GlobalVariable.AccountIDAccountTransferForm)) { _accountsPresenter.DisplayActive(); cboSaleAccount.EditValue = GlobalVariable.AccountIDAccountTransferForm; } } } }
private void grdLookUpEditFromAccount_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Index.Equals(1)) { var frmAccountDetail = new FrmAccountDetail(); frmAccountDetail.ShowDialog(); if (frmAccountDetail.CloseBox) { if (!string.IsNullOrEmpty(GlobalVariable.AccountIDAccountTransferForm)) { _accountsPresenter.DisplayActive(); grdLookUpEditFromAccount.Properties.DisplayMember = "AccountNumber"; grdLookUpEditFromAccount.Properties.ValueMember = "AccountId"; grdLookUpEditFromAccount.EditValue = GlobalVariable.AccountIDAccountTransferForm; } } } }