/// <summary> /// Destroys current screen and displays the screen below it /// </summary> /// <param Name="bc"></param> private void PopSceen(BaseCommand Bc) { this.Pause(); Active.Pop(); if (Active.Count == 0) { OnExitRequest?.Invoke(this, EventArgs.Empty); } Active.Peek()?.Resume(); }
public void InvokeOnExitRequest() { OnExitRequest?.Invoke(this, null); }
protected virtual void OnExit() { OnExitRequest?.Invoke(this, EventArgs.Empty); }