private void ClearListToolStripMenuItem_Click(object sender, EventArgs e) { AppTimer.Stop(); if (WaveOutEvent != null) { WaveOutEvent.Dispose(); WaveOutEvent = null; } if (AudioFileReader != null) { AudioFileReader.Dispose(); AudioFileReader = null; } FlowLayoutPanelMusic.Controls.Clear(); Music.Clear(); LabelMusicCurrentTimeState.Text = "--:--"; LabelMusicEndTime.Text = "--:--"; CurrentPlayingMusicIndex = 0; PlaybackBarControl.Val = 0; PictureBoxMusicCover.BackgroundImage = Properties.Resources.MusicTon; ButtonPlayPause.BackgroundImage = Properties.Resources.Play; PlayAndPauseToolStripMenuItem.Text = "Play"; MusicState = MusicState.Pause; this.Text = "MusicPlayer"; }
private static void StopMinerStatsCheckTimer() { _minerStatsCheck?.Stop(); }
public static void StopInternetCheckTimer() { _internetCheckTimer?.Stop(); }
private static void StopRefreshDeviceListViewTimer() { _refreshDeviceListViewTimer?.Stop(); }
// restroe/enable sleep private static void StopPreventSleepTimer() { _preventSleepTimer?.Stop(); }
private static void StopComputeDevicesCheckTimer() { _cudaDeviceCheckerTimer?.Stop(); }