Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
 private void buttonClear_Click(object sender, RoutedEventArgs e)
 {
     DebugContent.Clear();
     _allText.Clear();
 }