예제 #1
0
 public void ClearSearch()
 {
     if (this == null)
     {
         return;
     }
     SearchSelector.RestoreOriginalState(ParentControl);
     SearchSelector.ClearAll(ParentControl.TextBox.MainControl);
     SearchResult.Items.Refresh();
 }
예제 #2
0
 private void ButReplace_MouseUp(object sender, MouseButtonEventArgs e)
 {
     if (!SearchSelector.rezults.Any())
     {
         return;
     }
     ParentControl.TextBox.MainControl.TextChanged -= MainControl_TextChanged;
     SearchSelector.RestoreOriginalState(ParentControl);
     DoReplace();
     activeFindIndex = SearchResult.SelectedIndex;
     // ParentControl.TextBox.MainControl.TextChanged += MainControl_TextChanged;
 }
예제 #3
0
 private void HidenSearch_MouseUp(object sender, MouseButtonEventArgs e)
 {
     if (!NotesBrowser.IsVisible)
     {
         searchPanel.Hide();
     }
     else
     {
         MainContainer.Children.Remove(searchPanel);
     }
     SearchSelector.RestoreOriginalState(this);
     searchPanel = null;
 }
예제 #4
0
 public void Disposing()
 {
     SearchSelector.RestoreOriginalState(ParentControl);
 }