Beispiel #1
0
        public async static Task <EmulatorManager> InitializeAsync(Window window, IMainView mainView, Settings settings)
        {
            instance = new EmulatorManager();
            await instance.InitAsync(window, mainView, settings);

            return(instance);
        }
Beispiel #2
0
        private async void Initialize()
        {
            if (this.settings == null)
            {
                throw new InvalidOperationException("Settings not initialized.");
            }

            Window window = Window.Current;

            this.manager = await EmulatorManager.InitializeAsync(window, this.mainPage, this.settings);

            if (PlatformProperties.AlwaysFullscreen)
            {
                ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.FullScreen;
                ApplicationView view = ApplicationView.GetForCurrentView();
                if (!view.IsFullScreenMode)
                {
                    view.TryEnterFullScreenMode();
                }
            }
        }