Esempio n. 1
0
        private void KeyboardManagerOnKeyDown(object sender, KeyEventArgs args)
        {
            switch (UmbrellaAppState)
            {
            case UmbrellaAppState.Main:
                MainUI.OnKeyDown(args);
                break;

            case UmbrellaAppState.Login:
                LoginUI.OnKeyDown(args);
                break;
            }
        }
Esempio n. 2
0
        public MainWindow()
        {
            InitializeComponent();

            UmbrellaAppState = UmbrellaAppState.Main;

            KeyboardManager                  = new KeyboardManager(this);
            KeyboardManager.KeyDown         += KeyboardManagerOnKeyDown;
            KeyboardManager.UmbrellaKeyDown += KeyboardManagerOnUmbrella;
            KeyboardManager.UmbreallaKeyUp  += KeyboardManagerOnUmbrella;

            LoginUI   = new LoginUI(this);
            MainUI    = new MainUI(this);
            ProcessUI = new ProcessUI(this);
            MainUI.Init();

            WindowState = WindowState.Maximized;
            WindowStyle = WindowStyle.None;

            UmbrellaStatusesImage.Source = imageComposer.Combine(KeyboardManager.UmbrellaStatuses);
        }