예제 #1
0
 private void PopulateAndTransitionInNextScreen()
 {
     ActiveScreen = NextScreen;
     NextScreen.PopulateScreenViews ();
     NextScreen.TransitionIn ();
 }
예제 #2
0
 public void SetActiveScreen(Screen newScreen)
 {
     NextScreen = newScreen;
     if (ActiveScreen == null) {
         PopulateAndTransitionInNextScreen ();
     } else {
         ActiveScreen.OnTransitionedOut = HandleActiveScreenTransitionedOut;
         ActiveScreen.TransitionOut ();
     }
 }
예제 #3
0
 private void HandleActiveScreenTransitionedOut(Screen screen)
 {
     ActiveScreen.UnloadContent ();
     PopulateAndTransitionInNextScreen ();
 }