void SetButton() { closeButton = new Button(); Designer.SetButtonDesign(closeButton, "Set and return"); mainGrid.Children.Add(closeButton); closeButton.Click += (sender, args) => Close(); Grid.SetRow(closeButton, 1); }
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(); }; }