private void barButtonItemAddNewDiagnosis_ItemClick(object sender, ItemClickEventArgs e) { XtraFormDiagnosis form = new XtraFormDiagnosis(); form.ShowDialog(); RefreshData(1); }
private void barButtonItemEditDiagnosis_ItemClick(object sender, ItemClickEventArgs e) { Diagnosis selectedDiagnosis = bindingSourceDiagnosis.Current as Diagnosis; if (selectedDiagnosis.IsNull()) { Extensions.Extensions.ObjectNotSelectedForEdit(); return; } XtraFormDiagnosis formDiagnosis = new XtraFormDiagnosis(selectedDiagnosis); formDiagnosis.ShowDialog(); }