Пример #1
0
        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");
            }
        }
Пример #2
0
 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");
         }
     }
 }