예제 #1
0
        public void Add(ZForge.Controls.Logs.LogLevel level, CameraView view, string msg)
        {
            ExtendedLogViewerItem i = new ExtendedLogViewerItem(level, view, msg);

            this.mMutex.WaitOne();
            this.mLogs.Add(i);
            this.mMutex.ReleaseMutex();
        }
예제 #2
0
        private void UpdateUIAdd(ExtendedLogViewerItem item)
        {
            int pos = this.logGrid.RowsCount;

            this.logGrid.RowsCount++;

            this.logGrid[pos, 0] = new SourceGrid.Cells.Cell(pos);
            this.FillRowMark(item.LogLevel, pos);
            this.logGrid[pos, 2] = new SourceGrid.Cells.Cell(item.TimeStamp.ToString());
            this.logGrid[pos, 3] = new SourceGrid.Cells.Cell(item.Name);

            this.logGrid[pos, 4] = new SourceGrid.Cells.Cell(item.Message);
            this.logGrid[pos, 4].View.WordWrap = true;

            ExtendedLogViewerTag tag = new ExtendedLogViewerTag(item.LogLevel, item.ID, item.Name);

            this.logGrid.Rows[pos].Tag = tag;

            this.ShortcutAdd(tag);
        }
예제 #3
0
        private void UpdateUIAdd(ExtendedLogViewerItem item)
        {
            int pos = this.logGrid.RowsCount;
            this.logGrid.RowsCount++;

            this.logGrid[pos, 0] = new SourceGrid.Cells.Cell(pos);
            this.FillRowMark(item.LogLevel, pos);
            this.logGrid[pos, 2] = new SourceGrid.Cells.Cell(item.TimeStamp.ToString());
            this.logGrid[pos, 3] = new SourceGrid.Cells.Cell(item.Name);

            this.logGrid[pos, 4] = new SourceGrid.Cells.Cell(item.Message);
            this.logGrid[pos, 4].View.WordWrap = true;

            ExtendedLogViewerTag tag = new ExtendedLogViewerTag(item.LogLevel, item.ID, item.Name);
            this.logGrid.Rows[pos].Tag = tag;

            this.ShortcutAdd(tag);
        }
예제 #4
0
 public void Add(ZForge.Controls.Logs.LogLevel level, CameraView view, string msg)
 {
     ExtendedLogViewerItem i = new ExtendedLogViewerItem(level, view, msg);
     this.mMutex.WaitOne();
     this.mLogs.Add(i);
     this.mMutex.ReleaseMutex();
 }