private void EPOTextEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Ellipsis) { _FrmDrugSelect frm = new _FrmDrugSelect(true); frm.SetSelectedValues(bloodCleanup.EPO); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (frm.LstDrugID != null && frm.LstDrugID.Count > 0) { string sTemp = ""; for (int i = 0; i < frm.LstDrugID.Count; i++) { sTemp += frm.LstDrugID[i].ToString() + ","; } sTemp.TrimEnd(','); ((BLOODCLEANUP)bLOODCLEANUPBindingSource.Current).EPO = sTemp; bLOODCLEANUPBindingSource.ResetCurrentItem(); } } } }
private void M_NAMELookUpEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Ellipsis) { _FrmDrugSelect frm = new _FrmDrugSelect(); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (frm.LstDrugID != null && frm.LstDrugID.Count > 0) { ((DOC_ADVICE_DRUG)dOCADVICEBindingSource.Current).M_NAME = frm.LstDrugID[0]; dOCADVICEBindingSource.ResetCurrentItem(); } } } }