aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc
blob: bad3e4fcd54eefdee687d6a3104150af552ae73b (plain)
1
<%@ ServiceHost Language="C#" Debug="true" Service="Tango.MachineStudio.UpdateService.MachineStudioUpdateService" CodeBehind="MachineStudioUpdateService.svc.cs" %>
d } /* Literal.Number.Integer.Long */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.ColorConversion;

public static class ColorConversionSuggestionExtensions
{
    /// <summary>
    /// Gets the hive center suggestion.
    /// </summary>
    /// <param name="suggestions">The suggestions.</param>
    /// <returns></returns>
    public static ColorConversionSuggestion GetCenterSuggestion(this IEnumerable<ColorConversionSuggestion> suggestions)
    {
        if (suggestions.Count() == 3)
        {
            return suggestions.ElementAt(1);
        }
        else
        {
            return suggestions.ElementAt(10);
        }
    }
}