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