Example #1
0
        private void Main_Shown(object sender, EventArgs e)
        {
            Core.init(this.Main_Main_Display.Handle, this.Main_Main_Display.Size);
            SetForm();
            RefreshList();
            this.VisibleChanged += Main_VisibleChanged;
            this.SizeChanged += Main_SizeChanged;
            NotifySystem.RegisterClick(TaskbarIconClickHandler);
            Core.MainIsVisible = true;
            hotkeyHelper = new HotkeyHelper(this.Handle);
            playKey = hotkeyHelper.RegisterHotkey(Keys.F5, KeyModifiers.Alt);
            playKey1 = hotkeyHelper.RegisterHotkey(Keys.Play, KeyModifiers.None);
            playKey2 = hotkeyHelper.RegisterHotkey(Keys.Pause, KeyModifiers.None);
            nextKey = hotkeyHelper.RegisterHotkey(Keys.Right, KeyModifiers.Alt);
            nextKey1 = hotkeyHelper.RegisterHotkey(Keys.MediaNextTrack, KeyModifiers.None);
            hotkeyHelper.OnHotkey += OnHotkey;

            this.Main_Main_Display.ResumeLayout();
        }
Example #2
0
 private void Main_Shown(object sender, EventArgs e)
 {
     Core.init(this.panel2.Handle, this.panel2.Size);
     SetForm();
     RefreshList();
     this.VisibleChanged += Main_VisibleChanged;
     this.SizeChanged += Main_SizeChanged;
     Core.MainIsVisible = true;
     hotkeyHelper = new HotkeyHelper(this.Handle);
     playKey = hotkeyHelper.RegisterHotkey(Keys.F5, KeyModifiers.Alt);
     playKey1 = hotkeyHelper.RegisterHotkey(Keys.Play, KeyModifiers.None);
     playKey2 = hotkeyHelper.RegisterHotkey(Keys.Pause, KeyModifiers.None);
     nextKey = hotkeyHelper.RegisterHotkey(Keys.Right, KeyModifiers.Alt);
     nextKey1 = hotkeyHelper.RegisterHotkey(Keys.MediaNextTrack, KeyModifiers.None);
     hotkeyHelper.OnHotkey += new HotkeyEventHandler(OnHotkey);
     this.panel2.ResumeLayout();
 }
Example #3
0
 private void Mini_Shown(object sender, EventArgs e)
 {
     hotkeyHelper = new HotkeyHelper(this.Handle);
     playKey = hotkeyHelper.RegisterHotkey(Keys.F5, KeyModifiers.Alt);
     playKey1 = hotkeyHelper.RegisterHotkey(Keys.Play, KeyModifiers.None);
     playKey2 = hotkeyHelper.RegisterHotkey(Keys.Pause, KeyModifiers.None);
     nextKey = hotkeyHelper.RegisterHotkey(Keys.Right, KeyModifiers.Alt);
     nextKey1 = hotkeyHelper.RegisterHotkey(Keys.MediaNextTrack, KeyModifiers.None);
     hotkeyHelper.OnHotkey += new HotkeyEventHandler(OnHotkey);
 }
Example #4
0
        private void Main_Shown(object sender, EventArgs e)
        {
            CenterToScreen();
            Core.Init(Main_Main_Display.Handle, Main_Main_Display.Size);
            SetForm();
            RefreshList();
            VisibleChanged += Main_VisibleChanged;
            SizeChanged += Main_SizeChanged;
            NotifySystem.RegisterClick(TaskbarIconClickHandler);
            Core.MainIsVisible = true;
            _hotkeyHelper = new HotkeyHelper(Handle);
            _playKey = _hotkeyHelper.RegisterHotkey(Keys.F5, KeyModifiers.Alt);
            _playKey1 = _hotkeyHelper.RegisterHotkey(Keys.Play, KeyModifiers.None);
            _playKey2 = _hotkeyHelper.RegisterHotkey(Keys.Pause, KeyModifiers.None);
            _prevKey = _hotkeyHelper.RegisterHotkey(Keys.Left, KeyModifiers.Alt);
            _prevKey1 = _hotkeyHelper.RegisterHotkey(Keys.MediaPreviousTrack, KeyModifiers.None);
            _nextKey = _hotkeyHelper.RegisterHotkey(Keys.Right, KeyModifiers.Alt);
            _nextKey1 = _hotkeyHelper.RegisterHotkey(Keys.MediaNextTrack, KeyModifiers.None);
            _hotkeyHelper.OnHotkey += OnHotkey;

            Main_Main_Display.ResumeLayout();
        }