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(); }
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); }