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()))); }
private Task Commit() { var commits = Sides.Select(s => s.Commit(Filters)); return(Task.WhenAll(commits)); }
public override string ToString() { return($"{string.Join(",", Sides.Select(s => s.ToString()))} => {Square}"); }