Exemplo n.º 1
0
 /// <summary>
 /// Изменение позиции воспроизведения
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void slTime_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
 {
     labelLefttime.Content  = TimeSpan.FromSeconds(BassLike.GetPosOfStream(BassLike.Stream)).ToString();
     labelRightTime.Content = TimeSpan.FromSeconds(BassLike.GetTimeOfStream(BassLike.Stream)).ToString();
     BassLike.SetPosOfScroll(BassLike.Stream, (int)slTime.Value);
 }
Exemplo n.º 2
0
 /// <summary>
 /// При перемотке песни добавить текущую поз. воспроизведения в поток
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void slTime_Scroll(object sender, ScrollEventArgs e)
 {
     BassLike.SetPosOfScroll(BassLike.Stream, (int)slTime.Value);
 }