Merge pull request #12 from Flight-Simulator-EFB/revert-11-revert-10-revert-9-feature/route
Revert "Revert "Revert "Added Next and Previous Methods to Route""" - oops
This commit is contained in:
commit
e8d48670d1
@ -36,22 +36,6 @@ 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
|
//Generate a route Object
|
||||||
public static RouteModel StringToRoute(string departure, string arrival, uint cruise, string routeString){
|
public static RouteModel StringToRoute(string departure, string arrival, uint cruise, string routeString){
|
||||||
string[] routeTemp = routeString.Split(" ");
|
string[] routeTemp = routeString.Split(" ");
|
||||||
|
Loading…
Reference in New Issue
Block a user