Example #1
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);

            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];
        }
Example #2
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;
        }
Example #3
0
 void Progress_OnCancelled(ProgressOverlay sender)
 {
     Terminate();
     RequestClose("");
 }
Example #4
0
 void Progress_OnCancelled(ProgressOverlay sender)
 {
     Terminate();
     RequestClose("");
 }
Example #5
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);

            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];
        }
Example #6
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;
        }