public WhileHoldScreenBase( ScreenManager screenManager, ScreenBase goBackTo) : base(screenManager) { this._goBackTo = goBackTo ?? throw new ArgumentNullException(nameof(goBackTo)); }
public void OnScreenActivated(ScreenBase screen) { this.ActiveScreen?.Deactivate(); this.ActiveScreen = screen ?? throw new ArgumentNullException(nameof(screen)); Console.WriteLine($"Activated Screen: {screen.Name}"); }
public void OnScreenDeactivated(ScreenBase screen) { // nothing yet Console.WriteLine($"Deactivated Screen: {screen.Name}"); }
public void RegisterScreen(ScreenBase screen) { screens.Add(screen ?? throw new ArgumentNullException(nameof(screen))); }