Created
July 25, 2013 11:36
-
-
Save DominicFinn/6078903 to your computer and use it in GitHub Desktop.
little swap out thing for Ant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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