Пример #1
0
        public NewContentEventArgs(TailFile context, IEnumerable <LogLine> newLines)
        {
            var lines = newLines.ToList();

            Context      = context;
            NewLines     = lines;
            NewLineCount = lines.Count();
        }
Пример #2
0
        public NewContentEventArgs(TailFile context, IEnumerable<LogLine> newLines)
        {
            var lines = newLines.ToList();

            Context = context;
            NewLines = lines;
            NewLineCount = lines.Count();
        }
Пример #3
0
 public EditLogViewModel(TailFile tail)
 {
     PickLogCommand = new PickLogCommand(this);
     _tail = tail;
 }
Пример #4
0
 public EditLogInfo(TailFile tail)
 {
     InitializeComponent();
     DataContext = new EditLogViewModel(tail);
 }
 public void SetTail(string path)
 {
     var logInfo = new LogInfo(path);
     TailFile = new TailFile(logInfo);
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchOptions" /> class.
 /// </summary>
 /// <param name="tail">The tail.</param>
 public SearchOptions(TailFile tail)
 {
     _tail = tail;
     _tail.NewLinesAdded += NewContentAddedHandler;
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchOptions" /> class.
 /// </summary>
 /// <param name="tail">The tail.</param>
 public SearchOptions(TailFile tail)
 {
     _tail = tail;
     _tail.NewLinesAdded += NewContentAddedHandler;
 }