public MainWindow() { InitializeComponent(); //ScoreWindow s = new ScoreWindow(); StartGameCanvas start = new StartGameCanvas(MainGrid); }
private void startOver_Click(object sender, RoutedEventArgs e) { ResourceManager.GetInstance().Reset(); parent.Children.Remove(parent.Children[1]); this.Close(); StartGameCanvas start = new StartGameCanvas(parent); }
//GoBack button for play and host canvas private void goBack_Click(object sender, RoutedEventArgs e) { parent.Children.Remove(parent.Children[1]); StartGameCanvas start = new StartGameCanvas(parent); }
private void cancelGameButton_Click(object sender, RoutedEventArgs e) { //System.Console.WriteLine("WaitingToStartCanvasHost():: cancelGameButton_Click()"); parent.Children.Remove(parent.Children[1]); StartGameCanvas start = new StartGameCanvas(parent); }