public Menu(IPaint ui) { var position = 0; painter = ui; Position = new Coordinates(); MenuButtons = new List<Button>(); MenuButtons.Add(new StartButton(MenuButtons) {Position = new Coordinates(10, position += 3)}); MenuButtons.Add(new ScoreButton(MenuButtons) {Position = new Coordinates(10, position += 3)}); MenuButtons.Add(new ExitButton(MenuButtons) {Position = new Coordinates(10, position += 3)}); MenuButtons[SelectedButton].IsSelected = true; painter.RequireScreenUpdate(); }