Пример #1
0
        /// <summary>
        /// Handles the SelectionChanged event on the SearchTypeComboBox object.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="System.Windows.Controls.SelectionChangedEventArgs"/> instance containing the event data.</param>
        private void SearchTypeComboBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (this.SearchTypeComboBox != null)
            {
                switch (this.SearchTypeComboBox.SelectedItem.ToString())
                {
                case "Progressive":
                    SingleConceptMatchingPage.searchMode = SearchMode.Progressive;
                    break;

                case "User-initiated":
                    this.encodableInputFieldTimer.Stop();
                    SingleConceptMatchingPage.searchMode = SearchMode.UserInitiated;
                    break;
                }
            }
        }
 /// <summary>
 /// Handles the SelectionChanged event on the SearchTypeComboBox object.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.Windows.Controls.SelectionChangedEventArgs"/> instance containing the event data.</param>
 private void SearchTypeComboBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (this.SearchTypeComboBox != null)
     {
         switch (this.SearchTypeComboBox.SelectedItem.ToString())
         {
             case "Progressive":
                 SingleConceptMatchingPage.searchMode = SearchMode.Progressive;
                 break;
             case "User-initiated":
                 this.encodableInputFieldTimer.Stop();
                 SingleConceptMatchingPage.searchMode = SearchMode.UserInitiated;
                 break;
         }
     }
 }