Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public List<Destination> GetRoutelog(DateTime from, DateTime to)
- {
- var result = new List<Destination>();
- var index = 0;
- do
- {
- if (RouteLog[index].Arrival >= from && RouteLog[index].Arrival <= to && RouteLog[index].Departure >= from && RouteLog[index].Departure <= to)
- {
- result.Add(RouteLog[index]);
- }
- } while (index < RouteLog.Count);
- return result;
- }
Add Comment
Please, Sign In to add comment