コード例 #1
0
ファイル: DTSSearchViewModel.cs プロジェクト: girish66/REM
        /// <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;
        }
コード例 #2
0
ファイル: DTSSearchViewModel.cs プロジェクト: divyang4481/REM
        /// <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;
        }
コード例 #3
0
 /// <summary>
 /// Navigates to default command.
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 protected override void NavigateToDefaultCommand(KeyValuePair <string, string>[] parameters)
 {
     _proxy.GetVocabularyListAsync();
 }