Ejemplo n.º 1
0
 public void PushState(IApplicationState newState)
 {
     appStates.Peek().OnDisable();
     newState.App = this;
     appStates.Push(newState);
     newState.OnEnable();
 }
Ejemplo n.º 2
0
 public void PushState(IApplicationState newState)
 {
     appStates.Peek().OnDisable();
     newState.App = this;
     appStates.Push(newState);
     newState.OnEnable();
 }
Ejemplo n.º 3
0
        public Application(ApplicationSettings settings, IApplicationState startState)
        {
            Settings = settings;

            Window = CreateWindow(settings);
            Window.Closed += (sender, args) => Window.Close();

            appStates = new Stack<IApplicationState>();
            appStates.Push(startState);
            startState.App = this;
            startState.OnEnable();
        }
Ejemplo n.º 4
0
        public Application(ApplicationSettings settings, IApplicationState startState)
        {
            Settings = settings;

            Window         = CreateWindow(settings);
            Window.Closed += (sender, args) => Window.Close();

            appStates = new Stack <IApplicationState>();
            appStates.Push(startState);
            startState.App = this;
            startState.OnEnable();
        }