Example #1
0
        protected override void LoadContent()
        {
            GraphicsUtils.Instance.SpriteBatch = new SpriteBatch(GraphicsDevice);
            GraphicsUtils.Instance.Load(ContentManager);

            ScreenManager.SetScreenTransition(
                new FadeTransition
            {
                Speed = 3f
            }
                );

            ScreenManager.AddScreen(
                new SplashScreen
            {
                BackgroundColor = Color.White
            }
                );

            InputManager.RegisterInputEvent(new KeyInputBinding(Keys.F1),
                                            callback: () =>
            {
                var activeScreen     = ScreenManager.GetActiveScreen();
                activeScreen.IsDebug = !activeScreen.IsDebug;
            });
        }
        async void UserInterfaceViewModel_UserInterfaceDataControlAdded(object sender, UserInterfaceDataControlAddedEventArgument e)
        {
            ActiveScreen = screenManager.GetActiveScreen();
            Source       = e.Package.Data.Source;
            Count        = mainViewModel
                           .UserInterfaceViewModel
                           .Elements.Count(x => x.Data.Source.Text == Source.Text);

            ClipboardQuantityShown?.Invoke(this, new DataSourceClipboardQuantityShownEventArgument());

            await threadDelay.ExecuteAsync(environmentInformation.GetIsDebugging()? 3000 : 1500);

            ClipboardQuantityHidden?.Invoke(this, new DataSourceClipboardQuantityHiddenEventArgument());
        }
Example #3
0
 void UserInterfaceViewModel_UserInterfaceShown(Object sender, Infrastructure.Events.UserInterfaceShownEventArgument e)
 {
     ActiveScreen = screenManager.GetActiveScreen();
 }