/// <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); }
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(); } }