Esempio n. 1
0
        private void OnLiveProgressFromArrivalsClick(object sender, EventArgs e)
        {
            ErrorReporting.Log("OnLiveProgressFromArrivalsClick");
            var arrival = (Arrival)((Button)sender).DataContext;
            var title   = departuresAndArrivalsTable.Match(_ => arrival.Origin, (_, origin) => origin.Name) + " to " + departuresAndArrivalsTable.Station.Name;

            LiveProgressPage.SetDetails(title, arrival.Details);
            NavigationService.Navigate(this.GetUri <LiveProgressPage>());
        }
Esempio n. 2
0
        private void OnLiveProgressFromDeparturesClick(object sender, EventArgs e)
        {
            ErrorReporting.Log("OnLiveProgressFromDeparturesClick");
            var departure = (Departure)((Button)sender).DataContext;
            var title     = departuresAndArrivalsTable.Station.Name + " to " + departuresAndArrivalsTable.Match(_ => departure.Destination, (_, destination) => destination.Name);

            LiveProgressPage.SetDetails(title, departure.Details);
            NavigationService.Navigate(this.GetUri <LiveProgressPage>());
        }