Example #1
0
        private void OnPlayerLoaded(object sender, EventArgs eventArgs)
        {
            HotkeyRegister.RegisterHotkey(Guid.NewGuid(), "Ctrl+K", () =>
            {
                Settings.ShowOsd = !Settings.ShowOsd;

                if (Player.State == PlayerState.Playing)
                {
                    return;
                }

                Gui.VideoBox.Invalidate();
            });
        }
 private void RegisterHotkey()
 {
     HotkeyRegister.RegisterHotkey(m_HotkeyGuid, Hotkey, IncrementSelection);
 }