private async void SearchCommandHandler()
        {
            var result = new SearchSuggestModel();

            if (SelectedItem != null)
            {
                result.KeyWords = SelectedItem.Name;

                if (SelectedItem.Location != null)
                {
                    result.Lat = SelectedItem.Location.Lat;
                    result.Lng = SelectedItem.Location.Lng;
                }
            }
            else
            {
                result.KeyWords = SearchKeyWords;
            }

            //Messenger.Default.Send(result, MessengeToken.SearchCallBack);

            //await IocHelper.GetNavigationPage().PopAsync();

            await IocHelper.GetNavigationPage().PushAsync(new BaiduMapView(result));
        }
예제 #2
0
        private async void SearchEntryOnFocused(object sender, FocusEventArgs focusEventArgs)
        {
            var keyWords = ((Entry)sender).Text;

            var navigationPage = IocHelper.GetNavigationPage();
            await navigationPage.PushAsync(new SearchSuggestView(keyWords));
        }
예제 #3
0
        private async void CallBack()
        {
            PositionHelper.Address = $"{_searchEntry.Text}{_houseNumber.Text}";
            Messenger.Default.Send(PositionHelper.Address, MessengeToken.SearchCallBack);

            await IocHelper.GetNavigationPage().PopAsync();

            await IocHelper.GetNavigationPage().PopAsync();
        }
        private async void GoToCommandHandler(Type parm)
        {
            var navigationPage = IocHelper.GetNavigationPage();

            if (parm == typeof(CarouselPageView))
            {
                await navigationPage.PushAsync(new CarouselPageView());
            }
            else if (parm == typeof(CarouselImageView))
            {
                await navigationPage.PushAsync(new CarouselImageView());
            }
            else if (parm == typeof(BaiduMapView))
            {
                //await navigationPage.PushAsync(new BaiduMapView());
            }
            else if (parm == typeof(AreaSelectedView))
            {
                await navigationPage.PushAsync(new AreaSelectedView());
            }
        }
        private async void GoToCommandHandler(Type parm)
        {
            var navigationPage = IocHelper.GetNavigationPage();

            if (parm == typeof(AreaSelectedView))
            {
                await navigationPage.PushAsync(new AreaSelectedView());
            }
            else if (parm == typeof(RegisterAddressView))
            {
                await navigationPage.PushAsync(new RegisterAddressView());
            }
            //else if (parm == typeof(BaiduMapView))
            //{
            //    await navigationPage.PushAsync(new BaiduMapView());
            //}
            //else if (parm == typeof(AreaSelectedView))
            //{
            //    await navigationPage.PushAsync(new AreaSelectedView());
            //}
        }
예제 #6
0
 public void SelectedAddressCommandHandler()
 {
     IocHelper.GetNavigationPage().PushAsync(new SearchSuggestView(Address, _position));
 }