Пример #1
0
        public Task <IEnumerable <PaletteOption> > GetTargetPalette()
        {
            var colours = new[]
            {
                Color.White,
                Color.Gray,
                Color.Black,
                Color.Red,
                Color.Green,
                Color.Blue,
                Color.Yellow,
                Color.Teal,
                Color.Orange,
                Color.Purple,
                Color.Pink
            };

            var palette = colours.Select(c => PaletteOption.FromColor(c));

            return(Task.FromResult(palette.AsEnumerable()));
        }
Пример #2
0
 private static IEnumerable <PaletteOption> GetTestPaletteOptions(params Color[] colours)
 {
     return(colours.Select(c => PaletteOption.FromColor(c)));
 }