예제 #1
0
 private void ExitMe()
 {
     UnityNotifyIcon.Visible = false;
     ProgressTimer.Stop();
     EraseTaskFinished = true;
     Environment.Exit(1);
 }
예제 #2
0
 void StopTimers()
 {
     killTimer.Stop();
     ProgressTimer.Stop();
     VisualizerTimer.Stop();
     App.StoppedPlaying();
 }
예제 #3
0
 public void ResetTimer()
 {
     ProgressTimer.Stop();
     hrs              = mins = secs = 0;
     currentStep      = TimerCount = 0;
     percentCompleted = "0%";
     elapsedTime      = "";
 }
예제 #4
0
 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!");
        }
예제 #7
0
 //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();
     }
 }
예제 #8
0
 private void ProgressBar_Tick(object sender, EventArgs e)
 {
     progressBarX1.Increment(1);
     if (progressBarX1.Value == 100)
     {
         ProgressTimer.Stop();
         this.Hide();
         new frmDangNhap().ShowDialog();
         this.Close();
     }
 }
예제 #9
0
 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();
 }
예제 #10
0
 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;
         }
     }
 }
예제 #11
0
 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;
         }
     }
 }
예제 #12
0
 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 { }
 }
예제 #13
0
        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();
 }
예제 #15
0
        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);
                }
            }
        }
예제 #16
0
 private void ProgressBar_DragStarted(object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e)
 {
     isDragging = true;
     ProgressTimer.Stop();
 }
예제 #17
0
 private void StopTimers()
 {
     RefreshTimer?.Stop();
     ProgressTimer?.Stop();
     RefreshProgress = 0;
 }
예제 #18
0
 public override void Finish()
 {
     ProgressTimer.Stop();
 }
예제 #19
0
 public override void Finish()
 {
     ProgressTimer.Stop();
     moveAnchor = false;
 }
예제 #20
0
 public override void Finish()
 {
     ProgressTimer.Stop();
     CanvasHolder.UnselectHandlePoint();
 }