Ejemplo n.º 1
0
 public ProgressReportStep(StepStatus status)
 {
     Index          = 0;
     Title          = status.stepTitle;
     CompletionTime = BuildDateTime(status.completionTime);
     SetStepToInProgress();
 }
Ejemplo n.º 2
0
 public ProgressReportStep(StepStatus status, int stepIndex, bool userInCache = false)
 {
     Index          = status.stepIndex;
     Title          = status.stepTitle;
     CompletionTime = BuildDateTime(status.completionTime);
     Status         = BuildStatus(status.completionTime, (status.stepIndex == stepIndex || userInCache));
     Class          = BuildClass(Status);
     Icon           = BuildIconClasses(Status);
 }
 public override bool Equals(Object obj)
 {
     //Check for null and compare run-time types.
     if ((obj == null) || !this.GetType().Equals(obj.GetType()))
     {
         return(false);
     }
     else
     {
         StepStatus p = (StepStatus)obj;
         return(p.stepIndex == this.stepIndex &&
                p.stepTitle == this.stepTitle &&
                p.completionTime == this.completionTime &&
                p.stepTransactionId == this.stepTransactionId);
     }
 }