Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
chriszero committed Mar 21, 2018
1 parent 741b524 commit adbc3c5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ED-Router.UI.Desktop/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public MainViewModel()
MyRoute = new ObservableCollection<SystemJump>();
From = new ObservableCollection<string>();
To = new ObservableCollection<string>();
_fromSearch = Router.Start;
_toSearch = Router.Destination;
}

public ICommand CalculateCommand { get; private set; }
Expand Down Expand Up @@ -84,6 +86,12 @@ public string FromSearch
if (suggestionSystems.Contains(sys) == false)
From.Remove(sys);
}

// pass the Name to the underlying router
if (suggestionSystems.Contains(value))
{
Router.Destination = value;
}
}
}
}
Expand Down Expand Up @@ -113,6 +121,12 @@ public string ToSearch
if (suggestionSystems.Contains(sys) == false)
To.Remove(sys);
}

// pass the Name to the underlying router
if (suggestionSystems.Contains(value))
{
Router.Destination = value;
}
}
}
}
Expand Down

0 comments on commit adbc3c5

Please sign in to comment.