示例#1
0
        public async Task GoToMyProfile(ProfilePersonStateEnum state, bool forceReload)
        {
            if (rootPage == null)
            {
                return;
            }

            await NavPage.PopToRootAsync();

            rootPage.InitAsMyProfile(state, forceReload);

            this.UpdateNavigationMenuButtons(true);
        }
示例#2
0
        public async Task GoToEvents()
        {
            if (rootPage == null)
            {
                return;
            }

            await NavPage.PopToRootAsync();

            rootPage.InitAsEvents();

            this.UpdateNavigationMenuButtons(true);
        }
示例#3
0
        private void OnGoto(object sender, EventArgs args)
        {
            var vert = Trip.GetBusLocation(new StopTime(DateTime.Now));

            if (vert != null)
            {
                Map.MoveToRegion(MapSpan.FromCenterAndRadius(vert.AsPosition(), MapUtil.DefaultMapRadius));
                NavPage.PopToRootAsync();
            }
            else
            {
                _issueLabel.Text      = "Bus is not on map.";
                _issueLabel.TextColor = Color.FromHex("#ff0000");
            }
        }
示例#4
0
        public async Task GoToCommunity()
        {
            if (rootPage == null)
            {
                return;
            }

            TraceHelper.TraceInfoForResponsiveness("GoToCommunity - Starting");
            await NavPage.PopToRootAsync();

            TraceHelper.TraceInfoForResponsiveness("GoToCommunity - Popped pages");
            rootPage.InitAsCommunity();
            TraceHelper.TraceInfoForResponsiveness("GoToCommunity - InitAsCommunity finished");

            this.UpdateNavigationMenuButtons(true);
            TraceHelper.TraceInfoForResponsiveness("GoToCommunity - Done");
        }
示例#5
0
        async void OnTappedMessage()
        {
            await NavPage.PopToRootAsync();

            ph.ToolbarItem_RefrashClicked(null, null);
        }
示例#6
0
 public void PopToRoot()
 {
     NavPage.PopToRootAsync();
 }