private void initWithWheelmapParams(WheelmapParams args) {
            if (args.Search?.Length > 0) {
                ShowListTapped(MenuShowListItem, null);
                DataHolder.Instance.QueryString = args.Search;
            }
            if (args.ShowDetailsFromId > 0) {
                var node = Database.Instance.Table<Node>().Where(x => x.wm_id == args.ShowDetailsFromId).FirstOrDefault();
                if (node != null) {
                    SelectedNodeChangedEvent e = new SelectedNodeChangedEvent();
                    e.node = node;
                    BusProvider.DefaultInstance.Post(e);
                }
            }

            if (args.Path == WheelmapParams.PATH_HELP) {
                ShowHelpTapped(MenuShowHelpItem, null);
            }
        }
 private void Node_Selected(object sender, SelectionChangedEventArgs e) {
     if (e.AddedItems.Count() <= 0) {
         return;
     }
     Model.Node n = e.AddedItems[0] as Model.Node;
     SelectedNodeChangedEvent newEvent = new SelectedNodeChangedEvent();
     newEvent.node = n;
     BusProvider.DefaultInstance.Post(newEvent);
 }
        private void MapControl_MapElementClick(MapControl sender, MapElementClickEventArgs args) {

            if (args?.MapElements?.Count > 0) {
                var node = nodeElementMap.Get(args.MapElements.First());
                SelectedNodeChangedEvent e = new SelectedNodeChangedEvent() {
                    node = node,
                    sender = this,
                };
                BusProvider.DefaultInstance.Post(e);
            }

        }
 public void OnSelectedNodeChanged(SelectedNodeChangedEvent e) {
     if (e.sender == this || WindowSizeStates.CurrentState == STATE_SMALL) {
         return;
     }
     mapControl.ZoomLevel = 19;
     mapControl.Center = new Geopoint(new BasicGeoposition {
         Latitude = e.node.lat,
         Longitude = e.node.lon,
     });
 }
 private void Marker_NodeClicked(object sender, Model.Node node) {
     SelectedNodeChangedEvent e = new SelectedNodeChangedEvent();
     e.node = node;
     BusProvider.DefaultInstance.Post(e);
 }
        public void OnSelectedNodeChanged(SelectedNodeChangedEvent e) {
            if (detailContainerFrame.Content is NodeDetailPage) {
                (detailContainerFrame.Content as NodeDetailPage).SetNode(e.node);
            } else {
                ShowOnDetailFrame(typeof(NodeDetailPage), e.node);
            }

            this.RefreshCanGoBack();

        }
 public void OnSelectedNodeChanged(SelectedNodeChangedEvent e) {
     SelectedNode = e.node;
 }