Ejemplo n.º 1
0
        public override Pod SetupState(ProgramContext ProgramContext, ProgramStateContext ProgramStateContext)
        {
            _Context = ProgramStateContext;

            var screen = new LogInPlayerScreen(ProgramContext.ScreenResolution);

            _Controller                     = new LogInPlayerController(screen);
            _Controller.OnLogIn            += HandleLogIn;
            screen.OnRegister              += HandleRegister;
            screen.OnMainMenuButtonClicked += HandleBack;
            return(screen);
        }
 public LogInPlayerController(LogInPlayerScreen Screen)
 {
     _Screen          = Screen;
     _Screen.OnLogIn += HandleLogIn;
 }