Exemplo n.º 1
0
        private void ButtonAdd_Click(object sender, RoutedEventArgs e)
        {
            DictationTemplateEditPage dlg = new DictationTemplateEditPage(null);
            bool?dialogResult             = dlg.ShowDialog();

            if (dialogResult.HasValue && dialogResult.Value == true)
            {
                DictationTemplateCollection.Refresh();
                NotifyPropertyChanged("DictationTemplates");
            }
        }
Exemplo n.º 2
0
 private void ListViewDictationTemplates_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (this.ListViewDictationTemplates.SelectedItem != null)
     {
         string                    id = ((DictationTemplate)this.ListViewDictationTemplates.SelectedItem).TemplateId;
         DictationTemplate         dictationTemplate = DictationTemplateCollection.Instance.GetCloneByTemplateId(id);
         DictationTemplateEditPage dlg = new DictationTemplateEditPage(dictationTemplate);
         bool?dialogResult             = dlg.ShowDialog();
         if (dialogResult.HasValue && dialogResult.Value == true)
         {
             DictationTemplateCollection.Refresh();
             NotifyPropertyChanged("DictationTemplates");
         }
     }
 }