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; }
public bool HasStatusChanged(BuildInstance otherInstance) { return otherInstance == null || otherInstance.Progress != Progress || otherInstance.Result != Result; }
public bool HasStatusChanged(BuildInstance otherInstance) { return(otherInstance == null || otherInstance.Progress != Progress || otherInstance.Result != Result); }