private void GetVocabularyListCompleted(object sender, ProxyEventArgs e)
        {
            if (e.Exception == null)
            {
                var list = e.LoadResult <ObservableCollection <TerminologyVocabulary> > ();

                var snomed = list.Where(n => n.BusinessCode == "SNOMED").FirstOrDefault();

                Namespaces        = list;
                SelectedNamespace = snomed;
            }
            else
            {
                _userDialogService
                .ShowDialog(e.Exception.Message, "Could not retrieve the Vocabulary List", UserDialogServiceOptions.Ok);
            }
        }
Exemple #2
0
 private void GetVocabularyListCompleted(object sender, ProxyEventArgs e)
 {
     if (e.Exception == null)
     {
         var results = e.LoadResult <ObservableCollection <TerminologyVocabulary> > ();
         if (results != null)
         {
             _namspace = results.FirstOrDefault(tv => tv.BusinessCode == _namespaceToUse);
             if (_namspace == null)
             {
                 throw new Exception("Dts Vocabulary not found.");
             }
             (ManualSearchCommand as DelegateCommand).RaiseCanExecuteChanged();
         }
     }
     else
     {
         _userDialogService.ShowDialog(
             "An error occurred when retrieving the Terminology Vocabularies. Error: " + e.Exception.Message,
             "An error has occurred",
             UserDialogServiceOptions.Ok);
     }
 }
 private void GetVocabularyListCompleted( object sender, ProxyEventArgs e )
 {
     if ( e.Exception == null )
     {
         var results = e.LoadResult<ObservableCollection<TerminologyVocabulary>> ();
         if ( results != null )
         {
             _namspace = results.FirstOrDefault ( tv => tv.BusinessCode == _namespaceToUse );
             if ( _namspace == null )
             {
                 throw new Exception ( "Dts Vocabulary not found." );
             }
             ( ManualSearchCommand as DelegateCommand ).RaiseCanExecuteChanged ();
         }
     }
     else
     {
         _userDialogService.ShowDialog (
             "An error occurred when retrieving the Terminology Vocabularies. Error: " + e.Exception.Message,
             "An error has occurred",
             UserDialogServiceOptions.Ok );
     }
 }
        private void GetVocabularyListCompleted( object sender, ProxyEventArgs e )
        {
            if ( e.Exception == null )
            {
                var list = e.LoadResult<ObservableCollection<TerminologyVocabulary>> ();

                var snomed = list.Where ( n => n.BusinessCode == "SNOMED" ).FirstOrDefault ();

                Namespaces = list;
                SelectedNamespace = snomed;
            }
            else
            {
                _userDialogService
                    .ShowDialog ( e.Exception.Message, "Could not retrieve the Vocabulary List", UserDialogServiceOptions.Ok );
            }
        }
 private void ExecuteNamespaceChanged( TerminologyVocabulary namespaceDto )
 {
 }
 private void ExecuteNamespaceChanged(TerminologyVocabulary namespaceDto)
 {
 }