Пример #1
0
 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();
     };
 }
Пример #2
0
 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();
     };
 }