private void barFindBorrower_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { fndBorrower oForm = new fndBorrower(); oForm.ConnectionString = this.ConnectionString; oForm.ShowDialog(); if (oForm.SelectedCode != null) { this.OpenDocument(oForm.SelectedCode); } }
private void txtBorrowerCode_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { fndBorrower findForm = new fndBorrower(); findForm.ConnectionString = this.ConnectionString; findForm.ShowDialog(); if (findForm.SelectedCode != null) { txtCardCode.Text = findForm.SelectedCode; txtCardName.Text = findForm.SelectedName; txtInterestRate.Text = findForm.InterestRate; txtGuarrantor.Text = findForm.GuarrantorName; cboFrequencyOfPayment.Text = findForm.FrequencyOfPayment; cboPayDayCode.EditValue = findForm.PayDayCode; cboPayDayCode.ClosePopup(); cboFrequencyOfPayment.ClosePopup(); } }