public OperationMessageEventArgs(string id, DateTime startTime, OperationMessageStatus status, string message)
 {
     Id        = id;
     StartTime = startTime;
     Status    = status;
     Message   = message;
 }
示例#2
0
 public void UpdateStatus(OperationMessageStatus status)
 {
     if (status == OperationMessageStatus.Ok || status == OperationMessageStatus.Error)
     {
         ShowTestResults();
         if (status == OperationMessageStatus.Error)
         {
             ShowOperationAsError();
         }
         else
         {
             ShowOperationAsSuccess();
         }
     }
     else
     {
         ShowProgressBar();
     }
 }
示例#3
0
 public void UpdateStatus(OperationMessageStatus status)
 {
     if (status == OperationMessageStatus.Started)
     {
         ShowProgressBar();
     }
     else
     {
         ShowMessages();
         if (status == OperationMessageStatus.Error)
         {
             ShowOperationAsError();
         }
         else if (status == OperationMessageStatus.Warning)
         {
             ShowOperationAsWarning();
         }
         else
         {
             ShowOperationAsSuccess();
         }
     }
 }
示例#4
0
 public void RaiseEventOperationMessage(string identifier, string message, OperationMessageStatus status)
 {
     OnOperationMessageEvent(new OperationMessageEventArgs(identifier, DateTime.Now, status, message));
 }