コード例 #1
0
 private void Start_Click(object sender, RoutedEventArgs e)
 {
     WindowDisplay.ResumeExistingGame = (bool)ResumeExistingGame.IsChecked;
     WindowDisplay.ShowGame();
 }
コード例 #2
0
        //Set button background code

        //var brush = new ImageBrush();
        //brush.ImageSource = new BitmapImage(new Uri("Images/ContentImage.png", UriKind.Relative));
        //button1.Background = brush;

        private void MainMenu_Click(object sender, RoutedEventArgs e)
        {
            WindowDisplay.ShowMainMenu();
        }
コード例 #3
0
 public StartWindow()
 {
     InitializeComponent();
     WindowDisplay.Initialize(this);
     ResumeExistingGame.IsChecked = true;
 }