/// <summary> /// Initializes a new instance of the <see cref="VaccineNameDtsSearchViewModel"/> class. /// </summary> /// <param name="proxy">The proxy.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> public VaccineNameDtsSearchViewModel( ITerminologyProxy proxy, IUserDialogService userDialogService, IAccessControlManager accessControlManager, ICommandFactory commandFactory) : base(proxy, userDialogService, accessControlManager, commandFactory, NamespaceToUse) { }
/// <summary> /// Initializes a new instance of the <see cref="LabTestNameDtsSearchViewModel"/> class. /// </summary> /// <param name="proxy">The proxy.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> public LabTestNameDtsSearchViewModel( ITerminologyProxy proxy, IUserDialogService userDialogService, IAccessControlManager accessControlManager, ICommandFactory commandFactory ) : base(proxy, userDialogService, accessControlManager, commandFactory, NamespaceToUse) { }
/// <summary> /// Initializes a new instance of the <see cref="DTSSearchViewModel"/> class. /// </summary> /// <param name="proxy">The proxy.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="namespaceToUse">The namespace to use.</param> protected DTSSearchViewModel( ITerminologyProxy proxy, IUserDialogService userDialogService, IAccessControlManager accessControlManager, ICommandFactory commandFactory, string namespaceToUse ) : this(proxy, userDialogService, accessControlManager, commandFactory, namespaceToUse, null, null) { }
/// <summary> /// Initializes a new instance of the <see cref="DTSSearchViewModel"/> class. /// </summary> /// <param name="proxy">The proxy.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="namespaceToUse">The namespace to use.</param> protected DTSSearchViewModel( ITerminologyProxy proxy, IUserDialogService userDialogService, IAccessControlManager accessControlManager, ICommandFactory commandFactory, string namespaceToUse) : this(proxy, userDialogService, accessControlManager, commandFactory, namespaceToUse, null, null) { }
/// <summary> /// Initializes a new instance of the <see cref="TerminologyVocabularyViewModel"/> class. /// </summary> /// <param name="proxy">The proxy.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> public TerminologyVocabularyViewModel( ITerminologyProxy proxy, UserDialogService userDialogService, IAccessControlManager accessControlManager, ICommandFactory commandFactory ) : base(accessControlManager, commandFactory) { _proxy = proxy; _userDialogService = userDialogService; _proxy.GetVocabularyListCompleted += GetVocabularyListCompleted; _proxy.FindConceptsWithNameMatchingCompleted += FindConceptsWithNameMatchingCompleted; var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory ); NamespaceChangedCommand = commandFactoryHelper.BuildDelegateCommand<TerminologyVocabulary> ( () => NamespaceChangedCommand, ExecuteNamespaceChanged ); PerformSearchCommand = commandFactoryHelper.BuildDelegateCommand<string> ( () => PerformSearchCommand, ExecutePerformSearch ); }
/// <summary> /// Initializes a new instance of the <see cref="SingleConceptViewModel"/> class. /// </summary> /// <param name="proxy">The proxy.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> public SingleConceptViewModel( ITerminologyProxy proxy, IUserDialogService userDialogService, IAccessControlManager accessControlManager, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _proxy = proxy; _userDialogService = userDialogService; _proxy.GetVocabularyListCompleted += GetVocabularyListCompleted; _proxy.GetConceptByCodeSystemCodeCompleted += GetConceptByCodeSystemCodeCompleted; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); NamespaceChangedCommand = commandFactoryHelper.BuildDelegateCommand <TerminologyVocabulary> ( () => NamespaceChangedCommand, ExecuteNamespaceChanged); PerformSearchCommand = commandFactoryHelper.BuildDelegateCommand <string> (() => PerformSearchCommand, ExecutePerformSearch); }
/// <summary> /// Initializes a new instance of the <see cref="DTSSearchViewModel"/> class. /// </summary> /// <param name="proxy">The proxy.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="namespaceToUse">The namespace to use.</param> /// <param name="subsetName">Name of the subset.</param> /// <param name="dtsAdvancedSearchCriteria">The DTS advanced search criteria.</param> protected DTSSearchViewModel( ITerminologyProxy proxy, IUserDialogService userDialogService, IAccessControlManager accessControlManager, ICommandFactory commandFactory, string namespaceToUse, string subsetName, DtsAdvancedSearchCriteria dtsAdvancedSearchCriteria) : base(accessControlManager, commandFactory, dtsAdvancedSearchCriteria ?? new DtsAdvancedSearchCriteria(), false) { _proxy = proxy; _userDialogService = userDialogService; _subSetName = subsetName; _proxy.FindConceptsWithNameMatchingCompleted += FindConceptsWithNameMatchingCompleted; _proxy.GetConceptByCodeSystemCodeCompleted += GetConceptByCodeSystemCodeCompleted; _proxy.GetVocabularyListAsync(); _proxy.GetVocabularyListCompleted += GetVocabularyListCompleted; _namespaceToUse = namespaceToUse; }
/// <summary> /// Initializes a new instance of the <see cref="DTSSearchViewModel"/> class. /// </summary> /// <param name="proxy">The proxy.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="namespaceToUse">The namespace to use.</param> /// <param name="subsetName">Name of the subset.</param> /// <param name="dtsAdvancedSearchCriteria">The DTS advanced search criteria.</param> protected DTSSearchViewModel( ITerminologyProxy proxy, IUserDialogService userDialogService, IAccessControlManager accessControlManager, ICommandFactory commandFactory, string namespaceToUse, string subsetName, DtsAdvancedSearchCriteria dtsAdvancedSearchCriteria ) : base(accessControlManager, commandFactory, dtsAdvancedSearchCriteria ?? new DtsAdvancedSearchCriteria (), false) { _proxy = proxy; _userDialogService = userDialogService; _subSetName = subsetName; _proxy.FindConceptsWithNameMatchingCompleted += FindConceptsWithNameMatchingCompleted; _proxy.GetConceptByCodeSystemCodeCompleted += GetConceptByCodeSystemCodeCompleted; _proxy.GetVocabularyListAsync (); _proxy.GetVocabularyListCompleted += GetVocabularyListCompleted; _namespaceToUse = namespaceToUse; }