private void txtBillNum_ButtonCustomClick(object sender, EventArgs e) { try { var frm = new FrmQrySourceBill(_billType); frm.ShowDialog(); if (frm.DialogResult != DialogResult.OK) { return; } SourceBill = frm.SelectedSourceBill; BillNum = SourceBill.SourceBillMaster.BillNum; } catch (Exception ex) { BLMUtils.ShowError(ex.Message); } }
private void txtBillNum_BtnClick(object sender, EventArgs e) { try { var frm = new FrmQrySourceBill(BillType); frm.ShowDialog(); if (frm.DialogResult != DialogResult.OK) { return; } var sourceBill = frm.SelectedSourceBill; SetValues(sourceBill.SourceBillMaster); if (BtnClick != null) { BtnClick(sender, e); } } catch (Exception ex) { BLMUtils.ShowError(ex.Message); } }