예제 #1
0
        private void SubscribeToCaptureEvents()
        {
            ViewModel.PokemonEvolved           += ViewModelOnPokemonEvolved;
            ShowEvolveMenuStoryboard.Completed += async(s, e) =>
            {
                await Task.Delay(1000);

                EvolvePokemonStoryboard.Begin();
            };
            EvolvePokemonStoryboard.Completed += async(s, e) =>
            {
                await Task.Delay(1000);

                ShowEvolveStatsModalStoryboard.Begin();
            };
        }
예제 #2
0
        private void SubscribeToCaptureEvents()
        {
            ViewModel.PokemonEvolved           += ViewModelOnPokemonEvolved;
            ShowEvolveMenuStoryboard.Completed += async(s, e) =>
            {
                await Task.Delay(1000);

                EvolvePokemonStoryboard.Begin();
            };
            EvolvePokemonStoryboard.Completed += async(s, e) =>
            {
                await Task.Delay(1000);

                ViewModel.EvolveAnimationIsRunning = false;
                ViewModel.NavigateToEvolvedPokemonCommand.Execute();
            };
        }