private Color CalculateColour(BuildResultStatus status)
        {
            Color colour = UnknownColour;

            switch (status)
            {
                case BuildResultStatus.Cancelled:
                    colour = CancelledColour;
                    break;
                case BuildResultStatus.Failed:
                    colour = FailedColour;
                    break;
                case BuildResultStatus.InProgress:
                    colour = InProgressColour;
                    break;
                case BuildResultStatus.PartiallySucceeded:
                    colour = PartiallySucceededColour;
                    break;
                case BuildResultStatus.RetrievalError:
                    colour = RetrievalErrorColour;
                    break;
                case BuildResultStatus.Succeeded:
                    colour = SucceededColour;
                    break;
                default:
                    colour = UnknownColour;
                    break;

            }

            return colour;
        }
        private Color CalculateColour(BuildResultStatus status, Dictionary<BuildResultStatus, Color> colours)
        {
            Color colour = colours[BuildResultStatus.Unknown];

            switch (status)
            {
                case BuildResultStatus.Cancelled:
                    colour = colours[BuildResultStatus.Cancelled];
                    break;
                case BuildResultStatus.Failed:
                    colour = colours[BuildResultStatus.Failed];
                    break;
                case BuildResultStatus.InProgress:
                    colour = colours[BuildResultStatus.InProgress];
                    break;
                case BuildResultStatus.PartiallySucceeded:
                    colour = colours[BuildResultStatus.PartiallySucceeded];
                    break;
                case BuildResultStatus.RetrievalError:
                    colour = colours[BuildResultStatus.RetrievalError];
                    break;
                case BuildResultStatus.Succeeded:
                    colour = colours[BuildResultStatus.Succeeded];
                    break;
                default:
                    colour = colours[BuildResultStatus.Unknown];
                    break;
            }

            return colour;
        }
        protected override async void OnServiceEvent(object sender, BuildEventArgs e)
        {
            base.OnServiceEvent(sender, e);

            if (e.Code == BuildEventCode.BuildInformationRetrievalEnd)
            {
                await PerformUICode(() => CombinedBuildStatus = BuildService.ServiceStatus);
            }
        }
        private Color CalculateColour(BuildResultStatus status)
        {
            Color colour = UnknownColour;

            switch (status)
            {
            case BuildResultStatus.Cancelled:
                colour = CancelledColour;
                break;

            case BuildResultStatus.Failed:
                colour = FailedColour;
                break;

            case BuildResultStatus.InProgress:
                colour = InProgressColour;
                break;

            case BuildResultStatus.PartiallySucceeded:
                colour = PartiallySucceededColour;
                break;

            case BuildResultStatus.RetrievalError:
                colour = RetrievalErrorColour;
                break;

            case BuildResultStatus.Succeeded:
                colour = SucceededColour;
                break;

            default:
                colour = UnknownColour;
                break;
            }

            return(colour);
        }
        private Color CalculateColour(BuildResultStatus status, Dictionary <BuildResultStatus, Color> colours)
        {
            Color colour = colours[BuildResultStatus.Unknown];

            switch (status)
            {
            case BuildResultStatus.Cancelled:
                colour = colours[BuildResultStatus.Cancelled];
                break;

            case BuildResultStatus.Failed:
                colour = colours[BuildResultStatus.Failed];
                break;

            case BuildResultStatus.InProgress:
                colour = colours[BuildResultStatus.InProgress];
                break;

            case BuildResultStatus.PartiallySucceeded:
                colour = colours[BuildResultStatus.PartiallySucceeded];
                break;

            case BuildResultStatus.RetrievalError:
                colour = colours[BuildResultStatus.RetrievalError];
                break;

            case BuildResultStatus.Succeeded:
                colour = colours[BuildResultStatus.Succeeded];
                break;

            default:
                colour = colours[BuildResultStatus.Unknown];
                break;
            }

            return(colour);
        }