Ejemplo n.º 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];
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 void Progress_OnCancelled(ProgressOverlay sender)
 {
     Terminate();
     RequestClose("");
 }
Ejemplo n.º 4
0
 void Progress_OnCancelled(ProgressOverlay sender)
 {
     Terminate();
     RequestClose("");
 }
Ejemplo n.º 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];
        }
Ejemplo n.º 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;
        }