Esempio n. 1
0
        protected override async void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            _keeper = new AppKeeper(e);
            if (!_keeper.Start())
            {
                this.Shutdown(0);                 // This shutdown is expected behavior.
                return;
            }

            _controller = new AppController(_keeper);
            await _controller.InitiateAsync();

            //this.MainWindow = new MainWindow();
            //this.MainWindow.Show();
        }
Esempio n. 2
0
 public WeatherForecastController(AppKeeper keeeper, UserStore userStore)
 {
     _keeper    = _keeper;
     _userStore = userStore;
 }
Esempio n. 3
0
 public AppController(AppKeeper keeper) : base(keeper, new Settings())
 {
 }