private Color CalculateColour(BuildInstance instance)
        {
            Color colour = UnknownColour;

            if (instance == null)
            {
                colour = UnknownColour;
            }
            else if (instance.ProgressStatus != BuildProgressStatus.Completed)
            {
                colour = InProgressColour;
            }
            else
            {
                colour = CalculateColour(instance.ResultStatus);
            }

            return colour;
        }
Example #2
0
 public bool HasStatusChanged(BuildInstance otherInstance)
 {
     return otherInstance == null || otherInstance.Progress != Progress || otherInstance.Result != Result;
 }
Example #3
0
 public bool HasStatusChanged(BuildInstance otherInstance)
 {
     return(otherInstance == null || otherInstance.Progress != Progress || otherInstance.Result != Result);
 }