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