Example #1
0
        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;
            }
        }
Example #2
0
 private void ListView_ItemTapped(object sender, ItemTappedEventArgs e)
 {
     SAPManager.FetchStop((e.Item as StopList).Number);
 }
Example #3
0
 public MainPage()
 {
     SAPManager.Connect();
     InitializeComponent();
     listView.ItemTapped += ListView_ItemTapped;
 }
Example #4
0
 private void DetailView_ItemTapped(object sender, ItemTappedEventArgs e)
 {
     SAPManager.FetchStop(stopNumber);
 }