private void StartButtonClick(object sender, RoutedEventArgs e) { viewModel = FindResource("viewModel") as ViewModel.InvadersViewModel; viewModel.StartGame(); }
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 }