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