private void ListView_ItemTapped(object sender, ItemTappedEventArgs e) { switch (e.Item as string) { case "Connect": SAPManager.Connect(); break; case "Favourites": SAPManager.FetchStopsList(); break; case "Close": SAPManager.Disconnect(); break; } }
private void ListView_ItemTapped(object sender, ItemTappedEventArgs e) { SAPManager.FetchStop((e.Item as StopList).Number); }
public MainPage() { SAPManager.Connect(); InitializeComponent(); listView.ItemTapped += ListView_ItemTapped; }
private void DetailView_ItemTapped(object sender, ItemTappedEventArgs e) { SAPManager.FetchStop(stopNumber); }