void SetParameterButton() { parameterButton = new Button(); Designer.SetButtonDesign(parameterButton, "Configure"); buttonPanel.Children.Add(parameterButton); Grid.SetRow(parameterButton, 1); parameterButton.Click += (sender, args) => { Hide(); options = new OptionMenu(this); options.Show(); }; }
void SetStartButton() { startButton = new Button(); Designer.SetButtonDesign(startButton, "Start"); buttonPanel.Children.Add(startButton); startButton.Click += (sender, args) => { Hide(); GameWindow window = new GameWindow(); window.Show(); Close(); }; }