Exemplo n.º 1
0
 public void forceAdd(Screen s)
 {
     if (screens.Count > 0)
     {
         screens.Peek().clearCommand();
         screens.Peek().Hide(); //Hide current screen
     }
     s.transitionIn();  //Invoke transition
     s.Show();
     screens.Push(s);
     screenToAdd = null;
 }
Exemplo n.º 2
0
 /*
  * Public Methods
  */
 public void Add(Screen s)
 {
     if (screens.Count > 0)
     {
         s.Hide();
         screens.Peek().clearCommand(); //Clear command of current screen
         screens.Peek().transitionOut(); //transition out current screen
         screens.Peek().killFlag = false; //Don't kill
         screenToAdd = s; //Store screen temporarily
     }
     else
     {
         s.transitionIn(); //Transition
         s.Show();
         screens.Push(s); //Add to stack
     }
 }