示例#1
0
        private void RaiseError(Exception e)
        {
            Exception            exception = new Exception(string.Format(errorMessage, e.Message));
            RecordErrorEventArgs ea        = new RecordErrorEventArgs(exception);

            this.OnError(ea);
        }
示例#2
0
 private void OnError(RecordErrorEventArgs e)
 {
     if (this.Error != null)
     {
         this.Error(this, e);
     }
 }
示例#3
0
 private void RaiseError(Exception e)
 {
     Exception exception = new Exception(string.Format(errorMessage, e.Message));
      RecordErrorEventArgs ea = new RecordErrorEventArgs(exception);
      this.OnError(ea);
 }
示例#4
0
 private void OnError(RecordErrorEventArgs e)
 {
     if (this.Error != null) {
     this.Error(this, e);
      }
 }
示例#5
0
 private void recorder_Error(object sender, RecordErrorEventArgs e)
 {
     Trace.TraceError(e.Exception.ToString());
      Exception inneException = e.Exception.InnerException;
      if (inneException is TrackingException) { // This usually happens if specified window get closed
     this.ResetTracker();
      }
      this.view.ShowError(e.Exception.Message);
      this.anyRecord = IOUtil.FileExists(this.recorder.FileName);
 }