Merge pull request #14 from Flight-Simulator-EFB/feature/route

Feature/route
This commit is contained in:
Luke Else 2022-01-11 18:46:35 +00:00 committed by GitHub
commit 87a5dbfafa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,22 @@ namespace EFB.Models
}
}
public IWaypoint Next(){
if(Current.Next != null){
Current = Current.Next;
return Current;
}
return null;
}
public IWaypoint Previous(){
if(Current.Previous != null){
Current = Current.Previous;
return Current;
}
return null;
}
//Generate a route Object
public static RouteModel StringToRoute(string departure, string arrival, uint cruise, string routeString){
string[] routeTemp = routeString.Split(" ");