Ejemplo n.º 1
0
        private void OnLogTextChanged(RawContentsChangedEventArgs args)
        {
            Debug.WriteLine("RawContentChanged event fired");

            LogLines.Clear();
            LogLines.AddRange(args.NewText
                              .Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries)
                              .Select(line => new LogLine(line.Trim(), LogHighlight.None)));

            RawContentChanged?.Invoke(this, args);
        }
Ejemplo n.º 2
0
        private void OnLogTextChanged(RawContentsChangedEventArgs args)
        {
            Debug.WriteLine("RawContentChanged event fired");

            LogLines.Clear();
            LogLines.AddRange(args.NewText
                .Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries)
                .Select(line => new LogLine(line.Trim(), LogHighlight.None)));

            RawContentChanged?.Invoke(this, args);
        }