public static void Start() { var manager = new BoxManager() { boxes = new List <Box>() }; manager.boxes.Add(new Box() { height = 10, width = 20, boxColor = "Red", boxText = "#", }); manager.boxes.Add(new Box() { height = 6, width = 12, boxColor = "Blue", boxText = "#", }); manager.DrawInCenter(); Console.ReadKey(); }
public static void answer03() { var manager = new BoxManager() { boxes = new List <Box>() }; manager.boxes.Add(new Box() { height = 10, width = 20, color = ConsoleColor.Red, }); manager.boxes.Add(new Box() { height = 6, width = 12, color = ConsoleColor.Blue, }); manager.DrawInCenter(); }