private void Start_Click(object sender, RoutedEventArgs e) { WindowDisplay.ResumeExistingGame = (bool)ResumeExistingGame.IsChecked; WindowDisplay.ShowGame(); }
//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(); }
public StartWindow() { InitializeComponent(); WindowDisplay.Initialize(this); ResumeExistingGame.IsChecked = true; }