Esempio n. 1
0
        static void InterceptKeys_KeyPressed(object sender, EventArgs e)
        {
            // If the _flipper is not running, start it
            // Otherwise continue with showing the launcher
            if (!_Flipper.IsRunning)
            {
                _Flipper.Delay();
                return;
            }

            // Execute on UI thread
            Dispatcher.CurrentDispatcher.BeginInvoke((Action)delegate
            {
                LauncherWindow window = new LauncherWindow();

                window.Show();
                window.Topmost = true;
                window.Activate();
            });
        }