Exemple #1
0
        protected override void PageLoaded()
        {
            base.PageLoaded();

            if (base.InMemoryApplicationSettingModel.GetSetting(ApplicationSetting.ShowTripApplicationBar).Value)
            {
                ApplicationBarIsVisibile = true;
            }
            else
            {
                ApplicationBarIsVisibile = false;
            }

            Messenger.Default.Register <FlickMessage>(this, (action) => FlickPathItems(action));

            PageTitleMessage.Send(AppResources.HeaderTripDetails);

            PathResultsModel = SimpleIoc.Default.GetInstance <PathResultsModel>();
            PathResultsModel.SelectedRouteStops.Clear();

            if (PathResultsModel.SelectedPathOption == null)
            {
                PathResultsModel.SetSelectedPathOption("A");
            }

            this.timer.Interval = new TimeSpan(0, 0, 60 - DateTime.Now.Second);
            this.timer.Start();

            tripResultsModel = SimpleIoc.Default.GetInstance <TripResultsModel>();
        }
Exemple #2
0
 private void SendTripMessage(PageLoadMessage page)
 {
     if (page.Page == ApplicationPage.TripDetails)
     {
         PathResultsModel.SetSelectedPathOption(PathResultsModel.SelectedPathOption.Letter);
     }
 }