public LogTabPage(LogWindow.LogWindow logWindow, string title) : base("MMi" + (title == null ? Util.GetNameFromPath(logWindow.FileName) : title)) { this.TabTitle = title; if (this.TabTitle == null) { this.TabTitle = Util.GetNameFromPath(logWindow.FileName); } this.LogWindow = logWindow; this.LogWindow.FileSizeChanged += FileSizeChanged; this.LogWindow.TailFollowed += TailFollowed; this.ledThread = new Thread(new ThreadStart(this.LedThreadProc)); this.ledThread.IsBackground = true; this.ledThread.Start(); }
public PatternWindow(LogWindow.LogWindow logWindow) { this.logWindow = logWindow; InitializeComponent(); this.recalcButton.Enabled = false; }