public LogView() { InitializeComponent(); Dock = DockStyle.Fill; lvEntries.VirtualMode = true; panLower.Height = Program.LogViewPanLowerHeight; lvStackEntries.Width = Program.LogViewStackEntriesWidth; chDateTime.Width = Program.EntriesDateColumnWidth; chSeverity.Width = Program.EntriesSevColumnWidth; chCategories.Width = Program.EntriesCatColumnWidth; chMessage.Width = Program.EntriesMsgColumnWidth; chCall.Width = Program.StackCallColumnWidth; chLocation.Width = Program.StackLocColumnWidth; Progress = new ProgressOverlay(); Progress.OnCancelled += new CancelledDelegate(Progress_OnCancelled); foreach (string p in File.ReadAllLines("textline.patterns")) { string l = p.Trim(); if (l == "") { continue; } Regex r = new Regex(l, RegexOptions.IgnoreCase); textLinePatterns.Add(r); } textlineReg = textLinePatterns[0]; }
public LogView() { InitializeComponent(); Dock = DockStyle.Fill; lvEntries.VirtualMode = true; panLower.Height = Program.LogViewPanLowerHeight; lvStackEntries.Width = Program.LogViewStackEntriesWidth; chDateTime.Width = Program.EntriesDateColumnWidth; chSeverity.Width = Program.EntriesSevColumnWidth; chCategories.Width = Program.EntriesCatColumnWidth; chMessage.Width = Program.EntriesMsgColumnWidth; chCall.Width = Program.StackCallColumnWidth; chLocation.Width = Program.StackLocColumnWidth; Progress = new ProgressOverlay(); Progress.OnCancelled += new CancelledDelegate(Progress_OnCancelled); textlineReg = textlineReg1; }
void Progress_OnCancelled(ProgressOverlay sender) { Terminate(); RequestClose(""); }
public LogView() { InitializeComponent(); Dock = DockStyle.Fill; lvEntries.VirtualMode = true; panLower.Height = Program.LogViewPanLowerHeight; lvStackEntries.Width = Program.LogViewStackEntriesWidth; chDateTime.Width = Program.EntriesDateColumnWidth; chSeverity.Width = Program.EntriesSevColumnWidth; chCategories.Width = Program.EntriesCatColumnWidth; chMessage.Width = Program.EntriesMsgColumnWidth; chCall.Width = Program.StackCallColumnWidth; chLocation.Width = Program.StackLocColumnWidth; Progress = new ProgressOverlay(); Progress.OnCancelled += new CancelledDelegate(Progress_OnCancelled); foreach (string p in File.ReadAllLines(Application.StartupPath + "\\textline.patterns")) { string l = p.Trim(); if (l == "") continue; Regex r = new Regex(l,RegexOptions.IgnoreCase); textLinePatterns.Add(r); } textlineReg = textLinePatterns[0]; }