Exemple #1
0
 /// <summary>
 /// Submit a chapter for section repeating
 /// </summary>
 /// <param name="index"></param>
 public void SetChapterRepeat(int index)
 {
     if (index < 0 || index > Track.ChapterList.Count - 1)
     {
         return;
     }
     RepeatSection.ReceiveChapter(Track.ChapterList[index], Track.NowPlayingTrackInfo.Duration);
 }
Exemple #2
0
 private void TimerOnElapsed(object sender, ElapsedEventArgs e)
 {
     SetCurrentChapter();
     if (RepeatSection.RepeatCheck(_api.Player_GetPosition()))
     {
         _api.Player_SetPosition(RepeatSection.A.Position);
     }
 }
Exemple #3
0
 private void OnChaptersDgvCellClick(object sender, DataGridViewCellEventArgs e)
 {   // A-B Repeating
     if ((e.ColumnIndex == 0))
     {
         Chapter toRepeat = (Chapter)chaptersDGV.Rows[e.RowIndex].DataBoundItem;
         RepeatSection.ReceiveChapter(toRepeat, Track.NowPlayingTrackInfo.Duration);
         UpdateFirstColumn();
         SetCurrentChapterImage();
     }
 }