public OperationMessageEventArgs(string id, DateTime startTime, OperationMessageStatus status, string message) { Id = id; StartTime = startTime; Status = status; Message = message; }
public void UpdateStatus(OperationMessageStatus status) { if (status == OperationMessageStatus.Ok || status == OperationMessageStatus.Error) { ShowTestResults(); if (status == OperationMessageStatus.Error) { ShowOperationAsError(); } else { ShowOperationAsSuccess(); } } else { ShowProgressBar(); } }
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(); } } }
public void RaiseEventOperationMessage(string identifier, string message, OperationMessageStatus status) { OnOperationMessageEvent(new OperationMessageEventArgs(identifier, DateTime.Now, status, message)); }