private void buttonSetFilters_Click(object sender, RoutedEventArgs e) { var setFiltersWindow = new SetFiltersWindow(_filtersViewModel) { Topmost = true, Owner = Window.GetWindow(this), WindowStartupLocation = WindowStartupLocation.CenterOwner }; setFiltersWindow.ShowDialog(); string[] allLines = _allText.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); DebugContent.Clear(); foreach (string line in allLines) { if (_filtersViewModel.FilterMatches(line)) { DebugContent.AppendText(line + Environment.NewLine); } } }
private void buttonClear_Click(object sender, RoutedEventArgs e) { DebugContent.Clear(); _allText.Clear(); }