private void TracePoint_Filter(object sender, FilterEventArgs e) { if (e != null && e.Item != null) { TracePointMessage tp = e.Item as TracePointMessage; string filter = txtFilter.Text; e.Accepted = tp.IsMatch(filter); } }
private void RaiseDebugMessageEvent(string Message) { if (OnTracePointAdded != null) { TimeSpan deltaTime = DateTime.Now - _sessionStartTime; TracePointMessage tp = new TracePointMessage(DateTime.Now, deltaTime.TotalMilliseconds, Message); OnTracePointAddedEventArgs tpEvent = new OnTracePointAddedEventArgs(tp); this.OnTracePointAdded.Invoke(this, tpEvent); } }
public OnTracePointAddedEventArgs(TracePointMessage TracePoint) { this.TracePoint = TracePoint; }
public void AddTracePoint(TracePointMessage TracePoint) { _tracepointCollection.Add(TracePoint); RefreshDataGrid(); }