private void ExitMe() { UnityNotifyIcon.Visible = false; ProgressTimer.Stop(); EraseTaskFinished = true; Environment.Exit(1); }
void StopTimers() { killTimer.Stop(); ProgressTimer.Stop(); VisualizerTimer.Stop(); App.StoppedPlaying(); }
public void ResetTimer() { ProgressTimer.Stop(); hrs = mins = secs = 0; currentStep = TimerCount = 0; percentCompleted = "0%"; elapsedTime = ""; }
public void Stop() { OnlyUpdateTime = false; setProgress(0); currentStep = 0; TimerCount = 0; ProgressTimer.Stop(); }
private void ProgressTimer_Tick(object sender, EventArgs e) { ApplicationProgressBar.Increment(1); if (ApplicationProgressBar.Value == 100) { ProgressTimer.Stop(); this.Hide(); LogIn lg = new LogIn(); lg.ShowDialog(); } }
private void Player_SongStopped(object sender, EventArgs e) { Title = WindowName; TitleLabel.Text = ArtistLabel.Text = Properties.Resources.MAINWINDOW_NOTHINGPLAYING; ProgressTimer.Stop(); CoverArtBox.Source = null; SetIntegrations(PlaybackStatus.Stopped); SetCoverArtVisibility(false); LoggingHandler.Log("Stopping!"); }
//Timer loads the progress bar. When finished the button and label will appear private void ProgressTimer_Tick(object sender, EventArgs e) { StreamProgressBar.Increment(1); if (StreamProgressBar.Value == 100) { ProgressTimer.Stop(); StreamOkButton.Show(); MovieReadyLabel.Show(); StreamProgressBar.Hide(); } }
private void ProgressBar_Tick(object sender, EventArgs e) { progressBarX1.Increment(1); if (progressBarX1.Value == 100) { ProgressTimer.Stop(); this.Hide(); new frmDangNhap().ShowDialog(); this.Close(); } }
private void ProgressTimer_Tick(object sender, EventArgs e) { if (progressBar.Value >= progressBar.Maximum) { ProgressTimer.Stop(); MainForm main = new MainForm(); main.Show(); Hide(); return; } progressBar.Step = new Random().Next(5, 25); progressBar.PerformStep(); }
private void DownloadQueueItem_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName == nameof(Processed)) { if (Processed == null && !ProgressTimer.IsEnabled) { ProgressTimer.Start(); } else if (Processed == true) { ProgressTimer.Stop(); Progress = 100; } } }
private void Play_Pause_Click(object sender, EventArgs e) { if (Next.Enabled == false) { Next.Enabled = true; Back.Enabled = true; } if (play) { Player.controls.pause(); ProgressTimer.Stop(); Play_Pause.BackgroundImage = Resources.play; play = false; } else { if (music_path == null) { if (listView1.Items.Count != 0) { fun_play(true); } else { MessageBox.Show("There is no music!\n Please select from Explore"); Next.Enabled = false; Back.Enabled = false; } } else { Player.controls.play(); ProgressTimer.Start(); Mp3Lib.Mp3File file = new Mp3Lib.Mp3File(music_path); if (file.TagHandler.Picture == null) { pictureBox1.Image = Resources.Music_icon; } else { pictureBox1.Image = file.TagHandler.Picture; } Play_Pause.BackgroundImage = Resources.pause; Title_Label.Text = Path.GetFileNameWithoutExtension(music_path); play = true; } } }
private void Stop_Click(object sender, EventArgs e) { try { pictureBox1.Image = Resources.Music_icon; Player.controls.stop(); play = false; Play_Pause.BackgroundImage = Resources.play; ProgressTimer.Stop(); progressBar1.Value = 0; Title_Label.Text = "Select Song"; label1.Text = "00:00"; label2.Text = "00:00"; } catch { } }
private async void CheckPackFile() { working = true; ProgressTimer.Start(); PackVerified = await packManager.ProcessPackFile(); working = false; ProgressTimer.Stop(); SpeedLabel.Visible = false; if (this.Modal && PackVerified) { this.Close(); } }
// Player public void PlayPauseMethod() { if (!Player.FileLoaded) { return; } if (Player.Paused) { Player.Resume(); SetIntegrations(PlaybackStatus.Playing); ProgressTimer.Start(); } else { Player.Pause(); SetIntegrations(PlaybackStatus.Paused); ProgressTimer.Stop(); } UpdatePlayButtonState(); }
private void ProgressTimer_Tick(object sender, EventArgs e) { progressBar1.Value = (int)Player.controls.currentPosition; TimeSpan time = TimeSpan.FromSeconds((int)Player.controls.currentPosition); label2.Text = time.ToString("mm':'ss"); if (progressBar1.Maximum <= progressBar1.Value + 2) { ProgressTimer.Stop(); Stop.PerformClick(); if (Random.ForeColor == Color.Red) { Next.PerformClick(); } else { fun_play(false); } } }
private void ProgressBar_DragStarted(object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e) { isDragging = true; ProgressTimer.Stop(); }
private void StopTimers() { RefreshTimer?.Stop(); ProgressTimer?.Stop(); RefreshProgress = 0; }
public override void Finish() { ProgressTimer.Stop(); }
public override void Finish() { ProgressTimer.Stop(); moveAnchor = false; }
public override void Finish() { ProgressTimer.Stop(); CanvasHolder.UnselectHandlePoint(); }