private void Time_real_Tick(object sender, EventArgs e) { if (play.Value < play.MaximumValue) { play.Value++; } Set_PlayValue(play.Value); if (BeginTime.Text == RestTime.Text) { Time_real.Stop(); Thread.Sleep(1000); btn_Music_Play_Click(this, new EventArgs()); Next_Play_Click(this, new EventArgs()); } }
public void btn_Music_Play_Click(object sender, EventArgs e) { Mp3Player.Instance.Pause(); SetPlayIcon(); Time_real.Stop(); }