Пример #1
0
        private Task PrepareSides()
        {
            var sides = Sides.ToArray();
            var leds  = LedProvider.SupportedConfiguration(_container).ToArray();

            Sides = leds.Zip(sides, (file, side) =>
            {
                side.Led = file;
                return(side);
            }).ToArray();

            return(Task.WhenAll(Sides.Select(s => s.Load())));
        }
Пример #2
0
        private Task Commit()
        {
            var commits = Sides.Select(s => s.Commit(Filters));

            return(Task.WhenAll(commits));
        }
Пример #3
0
 public override string ToString()
 {
     return($"{string.Join(",", Sides.Select(s => s.ToString()))} => {Square}");
 }