Added Next & Previous Methods to Route
This commit is contained in:
parent
cea0b0e32e
commit
74b5f0cf0c
@ -38,7 +38,7 @@ namespace EFB.Models
|
|||||||
|
|
||||||
public IWaypoint Next(){
|
public IWaypoint Next(){
|
||||||
if(Current.Next != null){
|
if(Current.Next != null){
|
||||||
Current = current.Next;
|
Current = Current.Next;
|
||||||
return Current;
|
return Current;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@ -46,7 +46,7 @@ namespace EFB.Models
|
|||||||
|
|
||||||
public IWaypoint Previous(){
|
public IWaypoint Previous(){
|
||||||
if(Current.Previous != null){
|
if(Current.Previous != null){
|
||||||
Current = current.Previous;
|
Current = Current.Previous;
|
||||||
return Current;
|
return Current;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user