void listview_ItemClick(object sender, ItemClickEventArgs e)
        {
            var listview = sender as ListView;
            var t = mPilotList.GetItem(e.Position);

            var pilotDetails = new Intent(mParent, typeof(PilotDetailActivity));
            pilotDetails.PutExtra("pilotID", t.PilotID);
            pilotDetails.PutExtra("pilotName", t.PilotName);
            StartActivity(pilotDetails);
        }
        void listview_ItemClick(object sender, ItemClickEventArgs e)
        {
            var listview = sender as ListView;
            var t = mInventory.GetItem(e.Position);

            var itemDetails = new Intent(mParent, typeof(ItemDetailActivity));
            itemDetails.PutExtra("itemID", t.ItemID);
            itemDetails.PutExtra("itemName", t.Name);
            StartActivity(itemDetails);
        }
Esempio n. 3
0
        void listView_ItemClick(object sender, ItemClickEventArgs e)
        {
            var listview = sender as ListView;
            var adapter = listview.Adapter as ItemStocksAdapter;
            var t = adapter.GetItem(e.Position);

            var itemDetails = new Intent(this, typeof(ItemDetailActivity));
            itemDetails.PutExtra("itemID", t.ItemID);
            itemDetails.PutExtra("itemName", t.Name);
            StartActivity(itemDetails);
        }
Esempio n. 4
0
 void OnItemClick(object sender, ItemClickEventArgs e)
 {
     var entry = entries[e.Position];
     if (entry.IsDirectory())
     {
         SetPath(entry);
     }
     else
     {
         var intent = GetIntent();
         intent.PutExtra(ResultPath, entry);
         SetResult(RESULT_OK, intent);
         Finish();
     }
 }
Esempio n. 5
0
        private void OnDeviceClick(object sender, ItemClickEventArgs e)
        {
            // Cancel discovery because it's costly and we're about to connect
            mBtAdapter.CancelDiscovery();

            // Get the device MAC address, which is the last 17 chars in the View
            var info = ((TextView)e.View).GetText().ToString();
            var address = info.Substring(info.Length - 17);

            // Create the result Intent and include the MAC address
            Intent intent = new Intent();
            intent.PutExtra(EXTRA_DEVICE_ADDRESS, address);

            // Set result and finish this Activity
            SetResult(Activity.RESULT_OK, intent);
            Finish();            
        }
Esempio n. 6
0
 private void OnItemClick(object sender, ItemClickEventArgs e)
 {
     ExecuteCommandOnItem(ItemClick, e.Position);
 }
Esempio n. 7
0
 /// <summary>
 /// Show status of an airport.
 /// </summary>
 private void OnAirportClick(object sender, ItemClickEventArgs e)
 {
     var intent = new Intent(this, typeof (StatusActivity));
     intent.PutExtra("code", airports[e.Position].Code);
     StartActivity(intent);
 }