Skip to content

Instantly share code, notes, and snippets.

@auniverseaway
Created November 25, 2014 16:11
Show Gist options
  • Save auniverseaway/fcfb94f2b924ccacbc92 to your computer and use it in GitHub Desktop.
Save auniverseaway/fcfb94f2b924ccacbc92 to your computer and use it in GitHub Desktop.
EpisodeView Play_Tapped
if(App.EpisodeViewModel.IsOpen && App.EpisodeViewModel.IsPlaying)
{
// Pause
Debug.WriteLine("Pause");
App.EpisodeViewModel.Pause();
}
else if (App.EpisodeViewModel.IsOpen)
{
// Play current
Debug.WriteLine("Play Current");
App.EpisodeViewModel.PlayCurrent();
}
else
{
// Play New
Debug.WriteLine("Play New");
App.EpisodeViewModel.PlayNew();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment