Skip to content

Instantly share code, notes, and snippets.

@DominicFinn
Created July 25, 2013 11:36
Show Gist options
  • Select an option

  • Save DominicFinn/6078903 to your computer and use it in GitHub Desktop.

Select an option

Save DominicFinn/6078903 to your computer and use it in GitHub Desktop.
little swap out thing for Ant
dim nextLesson = (From l In lessons
Where l.Order = currentLesson.Order + 1
Select l).FirstOrDefault()
if not nextLesson is nothing then
Me.NextSong = nextLesson.Id
end if
If (currentLesson.Order > 1) Then
dim previousLesson = (From l In lessons
Where l.Order = currentLesson.Order - 1
Select l).FirstOrDefault()
if not previousLesson is nothing then
me.PreviousSong = previousLesson.Id
end if
End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment