Ejemplo n.º 1
0
        public EntryDetail(IULSLogEntry entry)
        {
            InitializeComponent();

            TimeStamp.Text   = entry.Timestamp;
            Process.Text     = entry.Process;
            TID.Text         = entry.TID;
            Area.Text        = entry.Area;
            Category.Text    = entry.Category;
            EventID.Text     = entry.EventID;
            Level.Text       = entry.Level;
            Message.Text     = entry.Message;
            Correlation.Text = entry.Correlation;
        }
Ejemplo n.º 2
0
 //Thread safe
 private void AddEntryToGridViewSafe(IULSLogEntry entry)
 {
     if (LogEntriesGrid.InvokeRequired)
     {
         LogEntriesGrid.Invoke((MethodInvoker) delegate
         {
             AddEntryToGridView(entry);
         });
     }
     else
     {
         AddEntryToGridView(entry);
     }
 }
        private void AddEntryToTable(IULSLogEntry entry)
        {
            lock (_lock)
            {
                System.Data.DataRow row = _table.NewRow();

                row["TimeStamp"]   = entry.Timestamp;
                row["Process"]     = entry.Process;
                row["Thread"]      = entry.TID;
                row["Product"]     = entry.Area;
                row["Category"]    = entry.Category;
                row["EventId"]     = entry.EventID;
                row["Level"]       = entry.Level;
                row["Message"]     = entry.Message;
                row["Correlation"] = entry.Correlation;

                _table.Rows.Add(row);
            }
        }
Ejemplo n.º 4
0
 //Not thread safe
 private void AddEntryToGridView(IULSLogEntry entry)
 {
     LogEntriesGrid.Rows.Add(entry.Timestamp, entry.Process, entry.TID, entry.Area, entry.Category,
                             entry.EventID, entry.Level, entry.Message, entry.Correlation);
 }
Ejemplo n.º 5
0
 public void SetUlsEntry(IULSLogEntry entry)
 {
     Entry = entry;
 }