void trc_Stopped(ITrace sender, TraceStoppedEventArgs e)
 {
     if (!bStopped)
     {
         MessageBox.Show("The trace was stopped for the following cause: " + e.StopCause.ToString());
     }
     FinishExecute(false);
 }
Ejemplo n.º 2
0
        public void Trace_Stopped(ITrace sender, TraceStoppedEventArgs e)
        {
            switch (e.StopCause)
            {
            case TraceStopCause.StoppedByUser:
                break;

            case TraceStopCause.Finished:
                if (this.QueryExecutionTimes[this.QueryExecutionTimes.Count - 1].Count < this.RepetitionsToDoList[CurrentQueryIndex])
                {
                    this.QueryExecutionTimes.RemoveAt(this.QueryExecutionTimes.Count - 1);
                }
                break;

            case TraceStopCause.StoppedByException:
                break;
            }
            this.CurrentQueryIndex = 0;
        }
 private void trace_Stopped(ITrace sender, TraceStoppedEventArgs e)
 {
     if (e.Exception != null && !string.IsNullOrEmpty(e.Exception.Message))
     {
         _errors += e.StopCause.ToString() + " - " + e.Exception.Message + " - " + e.Exception.StackTrace + "\r\n";
     }
 }
Ejemplo n.º 4
0
 void trc_Stopped(ITrace sender, TraceStoppedEventArgs e)
 {
     if (!bStopped)
         MessageBox.Show("The trace was stopped for the following cause: " + e.StopCause.ToString());
     FinishExecute(false);
 }