void ChangeDestinationButton_Clicked(object sender, EventArgs e) { Source = _joinedTrips.JoinedTrips.SingleOrDefault(x => !x.DestinationStopName.Equals(Source.DestinationStopName)); FirstStopNameLabel.Text = Source.FirstStopName; DestinationStopNameLabel.Text = Source.DestinationStopName; JoinedTripsListView.ItemsSource = Source.Stops; }
protected override async void OnAppearing() { base.OnAppearing(); JoinedTripsGrid.BindingContext = _joinedTrips; Source = _joinedTrips.JoinedTrips.FirstOrDefault(); FirstStopNameLabel.Text = Source.FirstStopName; DestinationStopNameLabel.Text = Source.DestinationStopName; JoinedTripsListView.ItemsSource = Source.Stops; _minuteTimeTableList = await _timeTableService.GetMinuteTimeTables(Source.BusLineName); }