protected MenuItem SelectMenuItem(IRouteController route) { var mi = new MenuItem { Header = "Select" }; mi.Click += (o, eventArgs) => { route.SelectRoutePoint(RoutePoint); }; return(mi); }
public virtual void OnDeselected() { _mapControl.MouseRightButtonDown -= MapControlOnMouseRightButtonDown; RouteController.SelectRoutePoint(null); }