private void pause_Click_1(object sender, EventArgs e) { SubBass.check = true; SubBass.Pause(); timer1.Enabled = false; SliderTime.Value = SubBass.GetPositionOfStream(SubBass.Streem); label1.Text = TimeSpan.FromSeconds(SubBass.GetPositionOfStream(SubBass.Streem)).ToString(); }
private void playlist_DoubleClick_1(object sender, EventArgs e) { SubBass.check = true; SubBass.Stop(); string current = Global_Data.Files[playlist.SelectedIndex]; SubBass.PLay(current, SubBass.Volume); label1.Text = TimeSpan.FromSeconds(SubBass.GetPositionOfStream(SubBass.Streem)).ToString(); label2.Text = TimeSpan.FromSeconds(SubBass.GetTimeOfTrackSteam(SubBass.Streem)).ToString(); SliderTime.Maximum = SubBass.GetTimeOfTrackSteam(SubBass.Streem); SliderTime.Value = SubBass.GetPositionOfStream(SubBass.Streem); timer1.Enabled = true; }
private void timer1_Tick(object sender, EventArgs e) { label1.Text = TimeSpan.FromSeconds(SubBass.GetPositionOfStream(SubBass.Streem)).ToString(); SliderTime.Value = SubBass.GetPositionOfStream(SubBass.Streem); }