Beispiel #1
0
 void summaryView_OnViewRoute(object sender, StringEventArgs e)
 {
     _model.SetCurrentlySelectedRouter(e.Value);
     this.mainView_OnRouteViewChanged(sender, new StringEventArgs(e.Value));
 }
Beispiel #2
0
 void stopView_OnSelectedRouteChanged(object sender, StringEventArgs e)
 {
     _model.CurrentlySelectedRouter = _model.GetRoute(e.Value);
     this.currentlySelectedRouteView.PopulateRoute(_model.CurrentlySelectedStops);
 }
Beispiel #3
0
 void mainView_OnRouteViewChanged(object sender, StringEventArgs e)
 {
     _model.SetCurrentlySelectedRouter(e.Value);
 }
Beispiel #4
0
 void mainView_OnSaveAsRoutes(object sender, StringEventArgs e)
 {
     _model.SaveAsRoute(e.Value);
     _mainView.ShowMessage(string.Format("Route saved to [{0}]", e.Value));
 }
Beispiel #5
0
 void mainView_OnAddBlankRoute(object sender, StringEventArgs e)
 {
     _model.AddBlankRoute(e.Value);
     this.addNewRouteView(e.Value);
     this.mainView_OnRouteViewChanged(sender, e);
 }