예제 #1
0
파일: HotkeysForm.cs 프로젝트: jlami/mutefm
        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);
            }
        }
예제 #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);
            }
        }