Пример #1
0
        public void HandleReset(object sender, SearchEventArgs e)
        {
            ResultPanelController controller = GetComponent <ResultPanelController>();

            controller.GETResultPanelView().reset();
            view.activateShow(false);
            controller.GETResultPanelModel().reset();

            QueryMenuController queryMenuController = GetComponent <QueryMenuController>();

            queryMenuController.Reset();
        }
Пример #2
0
        private void HandleCPositionSelect(object sender, QueryOptionEventArgs e)
        {
            IGPSLoggerModel gpsLoggerModel = transform.GetComponent <GPSLoggerController>().GETGPSLoggerModel();
            //Needs function to wait until gps signal is available
            // model.setQueryData(gpsLoggerModel.getStringGPSCoordinates());

            QueryMenuController  IqueryMenuView       = transform.GetComponent <QueryMenuController>();
            POICoordinatesObject poiCoordinatesObject = new POICoordinatesObject(gpsLoggerModel.getLatitude(), gpsLoggerModel.getLongitude(), gpsLoggerModel.getHeading());

            poiCoordinatesObject.setMyLocation(true);
            poiCoordinatesObject.setName("My Location: " + poiCoordinatesObject.getCoordinates());
            IqueryMenuView.addQuery(poiCoordinatesObject);
        }