private void ExtractResultsFromIntent() { // Load and unparcel scores IParcelable[] parcelableScores = this.Intent.GetParcelableArrayExtra(ExtraScores); ScoreOutput[] scores = new ScoreOutput[parcelableScores.Length]; for (int i = 0; i < parcelableScores.Length; i++) { scores[i] = ((ParcelableScoreOutput)parcelableScores[i]).Value; } // Load and unparcel CAMs IParcelable[] parcelableCAMs = this.Intent.GetParcelableArrayExtra(ExtraCAMs); CAM[] cams = new CAM[parcelableCAMs.Length]; for (int i = 0; i < parcelableCAMs.Length; i++) { cams[i] = ((ParcelableCAM)parcelableCAMs[i]).Value; } // Collapse into results array results = ResultsHelper.BuildConditionResultArray((ChestCondition[])Enum.GetValues(typeof(ChestCondition)), scores, cams, conditionColors); }
/// <summary> /// Initializes the condition result set. Called from <see cref="AnalysisViewController.cs"/> /// </summary> /// <param name="cams">Cams.</param> /// <param name="scores">Scores.</param> public void InitResultSet(CAM[] cams, ScoreOutput[] scores) { this.conditionResults = ResultsHelper.BuildConditionResultArray((ChestCondition[])Enum.GetValues(typeof(ChestCondition)), scores, cams, cellColorset); }