private void ButtonNewCode_Click(object sender, RoutedEventArgs e) { CPTCodeEditDialog dlg = new CPTCodeEditDialog(null); bool?dialogResult = dlg.ShowDialog(); if (dialogResult.HasValue && dialogResult.Value == true) { YellowstonePathology.Store.AppDataStore.Instance.CPTCodeCollection.Load(); this.NotifyPropertyChanged("CptCodeCollection"); } }
private void ListBoxCPTCodes_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (this.ListBoxCPTCodes.SelectedItem != null) { YellowstonePathology.Business.Billing.Model.CptCode cptCode = (YellowstonePathology.Business.Billing.Model.CptCode) this.ListBoxCPTCodes.SelectedItem; CPTCodeEditDialog dlg = new CPTCodeEditDialog(cptCode); bool?dialogResult = dlg.ShowDialog(); if (dialogResult.HasValue && dialogResult.Value == true) { YellowstonePathology.Store.AppDataStore.Instance.CPTCodeCollection.Load(); this.NotifyPropertyChanged("CptCodeCollection"); } } }