public UiPresentationDriver(AppState appState, IUiPresentation uiPresentation)
        {
            _appState       = appState;
            _uiPresentation = uiPresentation;

            _appState.PropertyChanged += OnAppStatePropertyChanged;
        }
Exemplo n.º 2
0
        public App()
        {
            InitializeComponent();

            _appState           = new AppState();
            _uiPresentation     = ChoosePresentation();
            _presentationDriver = new UiPresentationDriver(_appState, _uiPresentation);

            // TODO: This should run async so loading screen isn't blocked
            _appState.RunState = RunState.Loading;
            RestoreState();
            _appState.RunState = RunState.Loaded;
        }