コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public OnTracePointAddedEventArgs(TracePointMessage TracePoint)
 {
     this.TracePoint = TracePoint;
 }
コード例 #4
0
 public void AddTracePoint(TracePointMessage TracePoint)
 {
     _tracepointCollection.Add(TracePoint);
     RefreshDataGrid();
 }