private void MusicPlayerFormInit(object sender, EventArgs e) { Enabled = false; UseWaitCursor = true; LoadPlaylistTabs(); LoadAboutTab(); mainPlayerWMP.settings.volume = 50; mainPlayerWMP.PlayStateChange += (playState) => MainPlayerPlayStateChange(playState); StartMainPlayerControlLoop(); hotkeysForm = new ConfigHotkeysForm(this); ResetMarqueePosition(); MarqueeTimer.Start(); InitSoundCaptureChart(); SoundCaptureTimer.Start(); BuildRecursiveFileExplorerTreeTrunk(); if (rememberQueue) { LoadSongQueue(); } ApplyTheme(); Enabled = true; UseWaitCursor = false; }
private void ResetHotkeysToolStripMenuItem_Click(object sender, EventArgs e) { for (int id = 1; id <= hotkeysAmount; id++) { ChangeHotkey(GetDefaultKeyCode(id), id); } hotkeysForm.Hide(); hotkeysForm = new ConfigHotkeysForm(this); }