public void ClearSearch() { if (this == null) { return; } SearchSelector.RestoreOriginalState(ParentControl); SearchSelector.ClearAll(ParentControl.TextBox.MainControl); SearchResult.Items.Refresh(); }
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; }
private void HidenSearch_MouseUp(object sender, MouseButtonEventArgs e) { if (!NotesBrowser.IsVisible) { searchPanel.Hide(); } else { MainContainer.Children.Remove(searchPanel); } SearchSelector.RestoreOriginalState(this); searchPanel = null; }
public void Disposing() { SearchSelector.RestoreOriginalState(ParentControl); }