private void submitBubblesConfig_Click(object sender, System.Windows.RoutedEventArgs e) { BubblesGameConfig config = new BubblesGameConfig(); config = (BubblesGameConfig)this.FindResource("bubblesGameConfig"); BubblesGame.MainWindow window = new BubblesGame.MainWindow(config); window.Show(); }
private void RunGame() { if (MainWindow.SelectedPlayer == null) return; Config.Player = MainWindow.SelectedPlayer; _kinectSensor.Stop(); var window = new BubblesGame.MainWindow(Config); window.Show(); }