public Prescriber Load(int prescriberId) { var prescriber = _prescribers.SingleOrDefault(p => p.Id == prescriberId); if (prescriber == null) { prescriber = new Prescriber { Id = prescriberId, FirstName = "Jon", LastName = "Doe", DEA = "333333333", NPI = "44444444444" }; } return prescriber; }
private void ProcessSelect() { if (dgSrchResults.SelectedItem != null) { SelectedPrescriber = dgSrchResults.SelectedItem as Prescriber; SearchDialogResult = SearchDialogResult.Select; Close(); } }