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(){
|
||||
if(Current.Next != null){
|
||||
Current = current.Next;
|
||||
Current = Current.Next;
|
||||
return Current;
|
||||
}
|
||||
return null;
|
||||
@ -46,7 +46,7 @@ namespace EFB.Models
|
||||
|
||||
public IWaypoint Previous(){
|
||||
if(Current.Previous != null){
|
||||
Current = current.Previous;
|
||||
Current = Current.Previous;
|
||||
return Current;
|
||||
}
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user