public void pop() { Screens.Remove(Screens.Last()); --ScreenCount; if(ScreenCount>0) mActiveScreen = Screens.ElementAt(ScreenCount-1); }
public void push(Screen scr) { Screens.Add(scr); ++ScreenCount; mActiveScreen = Screens.ElementAt(ScreenCount-1); }
public ScreenStack() { Screens = new List<Screen>(); ScreenCount = 0; mActiveScreen = null; }