private void StartButtonClick(object sender, RoutedEventArgs e)
 {
     viewModel = FindResource("viewModel") as ViewModel.InvadersViewModel;
     viewModel.StartGame();
 }
Beispiel #2
0
 private void playArea_Loaded(object sender, RoutedEventArgs e)
 {
     UpdatePlayAreaSize(playArea.RenderSize);
     viewModel.StartGame(); // TODO: Double check this is the best place to start the game
 }