Beispiel #1
0
 private void stop_Click(object sender, EventArgs e)
 {
     SubBass.check = false;
     SubBass.Stop();
     timer1.Enabled   = false;
     SliderTime.Value = 0;
     label1.Text      = "00:00";
     label2.Text      = "00:00";
 }
Beispiel #2
0
        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;
        }