Inheritance: System.Windows.RoutedEventArgs
Exemplo n.º 1
0
 /// <summary> Invoke the Changed event; called whenever list changes: </summary>
 protected virtual void OnCriteriaChangeRequested(SearchRoutedEventArgs e)
 {
     if (RequestCriteriaChange != null)
     {
         RequestCriteriaChange(this, e);
     }
 }
Exemplo n.º 2
0
 private void edtSearchBox_BeginSearch_1(object sender, SearchRoutedEventArgs e)
 {
     DoSearch(edtSearchBox.FullSearchTerms);
 }
Exemplo n.º 3
0
 private void edtSearchBox_RequestCriteriaChange(object sender, SearchRoutedEventArgs e)
 {
     if (e.SearchTerms.StartsWith("author:"))
     {
         AuthorToggle_Click(sender, new RoutedEventArgs(e.RoutedEvent));
     }
     else
     {
         if (e.SearchTerms.StartsWith("ext:"))
         {
             ToggleButton_Click_1(sender, new RoutedEventArgs(e.RoutedEvent));
         }
         else
         {
             if (e.SearchTerms.StartsWith("subject:"))
             {
                 SubjectToggle_Click(sender, new RoutedEventArgs(e.RoutedEvent));
             }
             else
             {
                 if (e.SearchTerms.StartsWith("size:"))
                 {
                     miCustomSize_Click(sender, new RoutedEventArgs(e.RoutedEvent));
                 }
                 else
                 {
                     if (e.SearchTerms.StartsWith("date:"))
                     {
                         dcCustomTime_Click(sender, new RoutedEventArgs(e.RoutedEvent));
                     }
                     else
                     {
                         if (e.SearchTerms.StartsWith("modified:"))
                         {
                             dmCustomTime_Click(sender, new RoutedEventArgs(e.RoutedEvent));
                         }
                         else
                         {
                             MessageBox.Show("You have discovered an error in this program. Please tell us which filter you were trying to edit and any other details we should know. \r\n\r\nYour filter: " + e.SearchTerms, "Oops! Found a Bug!", MessageBoxButton.OK, MessageBoxImage.Error);
                         }
                     }
                     //MessageBox.Show("Editor not available or invalid parameter \n\r \r\n" + e.SearchTerms, "Search Criteria Editor", MessageBoxButton.OK, MessageBoxImage.Error);
                 }
             }
         }
     }
 }
 // Invoke the Changed event; called whenever list changes:
 protected virtual void OnCriteriaChangeRequested(SearchRoutedEventArgs e)
 {
     if (RequestCriteriaChange != null)
         RequestCriteriaChange(this, e);
 }
 // This method raises the Tap event
 void RaiseBeginSearchEvent()
 {
     SearchRoutedEventArgs newEventArgs = new SearchRoutedEventArgs(CompileTerms(), SearchBox.BeginSearchEvent);
     RaiseEvent(newEventArgs);
 }
Exemplo n.º 6
0
        // This method raises the Tap event
        void RaiseBeginSearchEvent()
        {
            SearchRoutedEventArgs newEventArgs = new SearchRoutedEventArgs(CompileTerms(), SearchBox.BeginSearchEvent);

            RaiseEvent(newEventArgs);
        }
Exemplo n.º 7
0
 private void edtSearchBox_RequestCriteriaChange(object sender, SearchRoutedEventArgs e) {
   if (e.SearchTerms.StartsWith("author:"))
     AuthorToggle_Click(sender, new RoutedEventArgs(e.RoutedEvent));
   else if (e.SearchTerms.StartsWith("ext:"))
     ToggleButton_Click_1(sender, new RoutedEventArgs(e.RoutedEvent));
   else if (e.SearchTerms.StartsWith("subject:"))
     SubjectToggle_Click(sender, new RoutedEventArgs(e.RoutedEvent));
   else if (e.SearchTerms.StartsWith("size:"))
     miCustomSize_Click(sender, new RoutedEventArgs(e.RoutedEvent));
   else if (e.SearchTerms.StartsWith("date:"))
     dcCustomTime_Click(sender, new RoutedEventArgs(e.RoutedEvent));
   else if (e.SearchTerms.StartsWith("modified:"))
     dmCustomTime_Click(sender, new RoutedEventArgs(e.RoutedEvent));
   else {
     var T = "You have discovered an error in this program. Please tell us which filter you were trying to edit and any other details we should know. \r\n\r\nYour filter: ";
     MessageBox.Show(T + e.SearchTerms, "Oops! Found a Bug!", MessageBoxButton.OK, MessageBoxImage.Error);
   }
 }
Exemplo n.º 8
0
 private void edtSearchBox_BeginSearch(object sender, SearchRoutedEventArgs e) => DoSearch();