Exemple #1
0
        public HotkeysForm()
        {
            InitializeComponent();
            for (int i = 0; i < SmartVolManagerPackage.BgMusicManager.MuteFmConfig.Hotkeys.Length; i++)
            {
                if (SmartVolManagerPackage.BgMusicManager.MuteFmConfig.Hotkeys[i].Name == "Toggle muting music/videos")
                    continue;

                MuteFmHotkeyControl hotkeyControl = new MuteFmHotkeyControl();
                _hotkeyControls.Add(hotkeyControl);
                hotkeyControl.Init(SmartVolManagerPackage.BgMusicManager.MuteFmConfig.Hotkeys[i].Name, SmartVolManagerPackage.BgMusicManager.MuteFmConfig.Hotkeys[i].Enabled, SmartVolManagerPackage.BgMusicManager.MuteFmConfig.Hotkeys[i].Key);
                hotkeyControl.Dock = DockStyle.Bottom;
                this.panel1.Controls.Add(hotkeyControl);
            }
        }
Exemple #2
0
        public HotkeysForm()
        {
            InitializeComponent();
            for (int i = 0; i < SmartVolManagerPackage.BgMusicManager.MuteFmConfig.Hotkeys.Length; i++)
            {
                if (SmartVolManagerPackage.BgMusicManager.MuteFmConfig.Hotkeys[i].Name == "Toggle muting music/videos")
                {
                    continue;
                }

                MuteFmHotkeyControl hotkeyControl = new MuteFmHotkeyControl();
                _hotkeyControls.Add(hotkeyControl);
                hotkeyControl.Init(SmartVolManagerPackage.BgMusicManager.MuteFmConfig.Hotkeys[i].Name, SmartVolManagerPackage.BgMusicManager.MuteFmConfig.Hotkeys[i].Enabled, SmartVolManagerPackage.BgMusicManager.MuteFmConfig.Hotkeys[i].Key);
                hotkeyControl.Dock = DockStyle.Bottom;
                this.panel1.Controls.Add(hotkeyControl);
            }
        }