void OnListViewItemClick(object sender, AdapterView.ItemClickEventArgs e) { var intent = new Intent(this, typeof(WeatherDetailActivity)); StartActivity(intent); }
private void MLeftDrawer_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { GlobalHelper.switchByIdFromList(Convert.ToInt16(e.Id), this); }
private void Text_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { SearcherAdapter.SetPoint(SearcherAdapter.GetFavoriteRoutes().FavoriteRoutesList[e.Position].PointOfDeparture, SearcherAdapter.GetFavoriteRoutes().FavoriteRoutesList[e.Position].PointOfDestination); StartActivity(typeof(MainActivity)); OverridePendingTransition(Resource.Animation.slide_left, Resource.Animation.fade_out); }
private void SearchClick(object sender, AdapterView.ItemClickEventArgs e) { int itemPosition = e.Position; OpenDetailForSearch(itemPosition); }
void PRAListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { PRAItemClick(this, new PRAListItemClickEventArg <object>(e.Id, e.View, e.Parent, Adapter.GetItem(e.Position).CastBack())); }
private void ListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { AssignValues(e.Position); }
void CoffeeListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { App.ServiceLocator.NavigationService.CurrentParameter = this.adapter [e.Position]; this.Activity.StartActivity(typeof(CoffeeDetailActivity)); }
private void TasksListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { var taskDetailPageIntent = new Intent(this, typeof(TaskDetailPage)); StartActivity(taskDetailPageIntent); }
private void OnItemClicked(object sender, AdapterView.ItemClickEventArgs e) { //var contact = _contactListAdapter.GetItem(e.Position); //_databaseProvider.Add(new Contact { Name = contact }); }
/// <summary> /// Handles OnClick event on a list item. /// Sets the current visualization data. /// </summary> private void OnListViewItemClick(object sender, AdapterView.ItemClickEventArgs e) { string title = mAdapter[e.Position]; string path = MainActivity.ApplicationFolderPath + Java.IO.File.Separator + mFilename + Java.IO.File.Separator + title + ".csv"; var reader = new Java.IO.BufferedReader(new Java.IO.FileReader(path)); string line = ""; if (title.Equals("controls")) { try { // Display throttle, yaw, pitch and roll mCurVisData.Points.Add("throttle", new List <DataPoint>()); mCurVisData.Points.Add("yaw", new List <DataPoint>()); mCurVisData.Points.Add("pitch", new List <DataPoint>()); mCurVisData.Points.Add("roll", new List <DataPoint>()); } catch (Exception ex) { mCurVisData.Points.Remove("throttle"); mCurVisData.Points.Remove("yaw"); mCurVisData.Points.Remove("pitch"); mCurVisData.Points.Remove("roll"); e.View.SetBackgroundColor(Color.White); return; } } else { try { mCurVisData.Points.Add(title, new List <DataPoint>()); } catch (Exception ex) { mCurVisData.Points.Remove(title); e.View.SetBackgroundColor(Color.White); return; } } while ((line = reader.ReadLine()) != null) { if (title.Equals("controls")) { String[] p = line.Split(','); float x = Convert.ToSingle(p[0]); float t = Convert.ToSingle(p[1]); float y = Convert.ToSingle(p[2]); float p2 = Convert.ToSingle(p[3]); float r = Convert.ToSingle(p[4]); int h = Convert.ToInt32(p[5]); mCurVisData.Points["throttle"].Add(new DataPoint(x, t)); mCurVisData.Points["yaw"].Add(new DataPoint(x, y)); mCurVisData.Points["pitch"].Add(new DataPoint(x, p2)); mCurVisData.Points["roll"].Add(new DataPoint(x, r)); if (h == 1) { mCurVisData.AltControlTime.Add(x); } } else if (!title.Equals("settings")) { String[] p = line.Split(';'); float x = Convert.ToSingle(p[0]); float y = Convert.ToSingle(p[1]); //int h = Convert.ToInt32(p[2]); mCurVisData.Points[title].Add(new DataPoint(x, y)); //if (h == 1) //{ // mCurVisData.AltControlTime.Add(x); //} } } reader.Close(); e.View.SetBackgroundColor(Color.ParseColor("#928285")); }
void listSauce_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { selectedSauceItems.ElementAt <SauceItem>(e.Position).selected = !(selectedSauceItems.ElementAt <SauceItem>(e.Position).selected); }
async void ListView_OnItemClick(object sender, AdapterView.ItemClickEventArgs e) { ResetUIToBeginState(false); SslValidator.CertificateErrorRaised = false; //Set selected local box Waardes.Instance.GeselecteerdeBox = foundLocalBoxes[e.Position].Id; //Reset certificate validation check to default behavior /* * ServicePointManager.ServerCertificateValidationCallback = null; * * if (foundLocalBoxes[e.Position].OriginalSslCertificate != null) { //Selected localbox does have a ssl certificate * //Set ssl validator for selected LocalBox * SslValidator sslValidator = new SslValidator (); * ServicePointManager.ServerCertificateValidationCallback = sslValidator.ValidateServerCertficate; * }*/ //Change action bar color to color of selected localbox if (DataLayer.Instance.GetSelectedOrDefaultBox().BackColor != null && DataLayer.Instance.GetSelectedOrDefaultBox().BackColor.StartsWith("#")) { HomeActivity.colorOfSelectedLocalBox = DataLayer.Instance.GetSelectedOrDefaultBox().BackColor; } else { HomeActivity.colorOfSelectedLocalBox = Constants.lightblue; } SetCustomActionBarColor(); //Change logo image to logo of selected local box if (DataLayer.Instance.GetSelectedOrDefaultBox().LogoUrl != null) { string logoUrl = DataLayer.Instance.GetSelectedOrDefaultBox().LogoUrl; string documentsPath = DocumentConstants.DocumentsPath; string pathToLogo = System.IO.Path.Combine(documentsPath, logoUrl.Substring(logoUrl.LastIndexOf("/") + 1)); if (File.Exists(pathToLogo)) { //Verander logo Android.Net.Uri uriLogo = Android.Net.Uri.Parse(pathToLogo); //imageViewLogo.SetImageURI (uriLogo); } else //Default logo { //imageViewLogo.SetImageResource (Resource.Drawable.beeldmerk_belastingdienst); } } //Update fragment data Android.Support.V4.App.FragmentTransaction fragmentTransaction = Activity.SupportFragmentManager.BeginTransaction(); fragmentTransaction.SetCustomAnimations(Resource.Animation.enter, Resource.Animation.exit); //Show progress dialog while loading ShowProgressDialog(Activity, null); try { HomeActivity homeActivity = (HomeActivity)Activity; ExplorerFragment explorerFragment = new ExplorerFragment(await DataLayer.Instance.GetFolder("/"), homeActivity); HomeActivity.openedExplorerFragments = new List <ExplorerFragment>(); HomeActivity.openedExplorerFragments.Add(explorerFragment); //Add new directory to opened directories list ExplorerFragment.openedDirectories = new List <string>(); ExplorerFragment.openedDirectories.Add("/"); fragmentTransaction.Replace(Resource.Id.fragment_container_explorer, explorerFragment, "explorerFragment"); //Clear fragment back stack int entryCount = Activity.SupportFragmentManager.BackStackEntryCount; while (entryCount > 0) { Activity.SupportFragmentManager.PopBackStackImmediate(); entryCount = Activity.SupportFragmentManager.BackStackEntryCount; } //Add fragment to stack - needed for back button functionality fragmentTransaction.AddToBackStack(null); // Start the animated transition. fragmentTransaction.Commit(); //Show hidden buttons RelativeLayout fragmentContainerExplorerBottom = Activity.FindViewById <RelativeLayout> (Resource.Id.fragment_container_explorer_blank); fragmentContainerExplorerBottom.Visibility = ViewStates.Visible; //Show shadow View shadowContainerExplorer = Activity.FindViewById <View> (Resource.Id.shadow_container_explorer); shadowContainerExplorer.Visibility = ViewStates.Visible; //Hide back button ImageButton buttonBackExplorer = Activity.FindViewById <ImageButton> (Resource.Id.button_back_explorer); buttonBackExplorer.Visibility = ViewStates.Invisible; HideProgressDialog(); } catch (Exception ex) { Insights.Report(ex); HideProgressDialog(); Toast.MakeText(Activity, "Er is iets fout gegaan", ToastLength.Short).Show(); } }
private void AnimeSearchPageListOnItemClick(object sender, AdapterView.ItemClickEventArgs itemClickEventArgs) { var item = itemClickEventArgs.View.Tag.Unwrap <AnimeSearchItemViewModel>(); item.NavigateDetails(); }
private void Klantenlijst_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { klantenHelper[e.Position] = !klantenHelper[e.Position]; }
/* display the complete schedule information in a string when clicked*/ private void MListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { Toast.MakeText(this, mItems[e.Position].ToString(), ToastLength.Long).Show(); }
private void Liste_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { GetUserInfo(mAdapter[e.Position].receiverId.ToString(), mAdapter[e.Position].key); }
private void Gallery_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { Toast.MakeText(this, e.Position.ToString(), ToastLength.Short).Show(); }
private void LvTrailSearchDialog_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { coord = Trails[e.Position].m_start; Dismiss(); }
private void ListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { }
private void ListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { ListView listView = sender as ListView; Java.Lang.Object itemObject = listView.GetItemAtPosition(e.Position); ShoppingListView item = Tools.Cast <ShoppingListView>(itemObject); string removeText = Resources.GetString(Resource.String.ShoppingList_Remove); string toStorage = Resources.GetString(Resource.String.ShoppingList_ToStorage); string articleDetail = Resources.GetString(Resource.String.ShoppingList_Artikelangaben); string gekauft = Resources.GetString(Resource.String.ShoppingList_Gekauft); string[] actions = { "+10", "+1", "-1", "-10", removeText, toStorage, articleDetail, gekauft }; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.SetTitle(item.Heading); builder.SetItems(actions, (sender2, args) => { switch (args.Which) { case 0: // +10 Database.AddToShoppingList(item.ArticleId, 10); this.ShowShoppingList(); break; case 1: // +1 Database.AddToShoppingList(item.ArticleId, 1); this.ShowShoppingList(); break; case 2: // -1 Database.AddToShoppingList(item.ArticleId, -1); this.ShowShoppingList(); break; case 3: // -10 Database.AddToShoppingList(item.ArticleId, -10); this.ShowShoppingList(); break; case 4: // Entfernen (gekauft) Database.RemoveFromShoppingList(item.ArticleId); this.LoadSupermarketList(); this.ShowShoppingList(); break; case 5: // Ins Lagerbestand decimal shoppingItemCount = item.Quantity; if (shoppingItemCount == 0) { shoppingItemCount = 1; } var storageDetails = new Intent(this, typeof(StorageItemQuantityActivity)); storageDetails.PutExtra("ArticleId", item.ArticleId); storageDetails.PutExtra("EditMode", true); storageDetails.PutExtra("Quantity", (double)shoppingItemCount); this.StartActivityForResult(storageDetails, EditStorageQuantity); break; case 6: // Artikelangaben... var articleDetails = new Intent(this, typeof(ArticleDetailsActivity)); articleDetails.PutExtra("ArticleId", item.ArticleId); this.StartActivityForResult(articleDetails, EditArticle); break; case 7: // Als 'Gekauft' markieren Database.SetShoppingItemBought(item.ArticleId, true); this.ShowShoppingList(); break; } return; }); builder.Show(); }
private void mListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { int itemPosition = e.Position; OpenDetailActivity(itemPosition); }
private void OnItinerarySelected(object sender, AdapterView.ItemClickEventArgs e) { Itinerary itinerary = (Itinerary)tripSearchAdapter.GetItineraryAtPosition(e.Position); presenter.OnItinerarySelected(itinerary); }
private void Edit(AdapterView.ItemClickEventArgs e) { DeviceInfo device = data[e.Position]; AlertDialog.Builder alertDialog = new AlertDialog.Builder(this); View view = View.Inflate(this, Resource.Layout.Add, null); InitViewControls(view); InitViewControlsContents(device); alertDialog.SetView(view) .SetPositiveButton(GetString(Resource.String.add_device_save), (_s, _e) => { if (!TestDataFormat()) { Toast.MakeText(this, GetString(Resource.String.add_device_error), ToastLength.Long).Show(); return; } device.Name = DeviceName.Text; device.MacAddress = $"{DeviceMac1.Text}-{DeviceMac2.Text}-{DeviceMac3.Text}-{DeviceMac4.Text}-{DeviceMac5.Text}-{DeviceMac6.Text}"; device.IpAddress = $"{DeviceIp1.Text}.{DeviceIp2.Text}.{DeviceIp3.Text}.{DeviceIp4.Text}"; device.BroadcastAddress = $"{DeviceBroadcast1.Text}.{DeviceBroadcast2.Text}.{DeviceBroadcast3.Text}.{DeviceBroadcast4.Text}"; device.Port = Convert.ToByte(DevicePort.Text); device.SendingCount = Convert.ToByte(SendingCount.Text); device.Description = DeviceDesc.Text; device.IsShortcut = Shortcut.Checked; sqlite.Update(device); data = sqlite.QueryAll(); adapter = new DeviceListAdapter(this, Resource.Layout.device_list_item, data); DeviceList.Adapter = adapter; SetShortcut(); Toast.MakeText(this, GetString(Resource.String.add_device_save_success), ToastLength.Long).Show(); }) .SetNegativeButton(GetString(Resource.String.add_device_cancel), (_s, _e) => { (_s as AlertDialog).Dismiss(); }) .SetNeutralButton(Resource.String.add_device_delete, (_s, _e) => { sqlite.Delete(device); data = sqlite.QueryAll(); adapter = new DeviceListAdapter(this, Resource.Layout.device_list_item, data); DeviceList.Adapter = adapter; if (data.Count != 0) { DeviceList.Visibility = ViewStates.Visible; Tips.Visibility = ViewStates.Gone; } Toast.MakeText(this, GetString(Resource.String.add_device_delete_success), ToastLength.Long).Show(); }) .Create(); AlertDialog show = alertDialog.Show(); }
private void LstData_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { Toast.MakeText(this, lstMyCoins[e.Position].Name + " - " + lstMyCoins[e.Position].Price.ToString(), ToastLength.Short).Show(); }
// public override void Layout (int l, int t, int r, int b) // { // base.Layout (l, t, r, b); // } void Clicked(object sender, AdapterView.ItemClickEventArgs e) { Element.NotifyItemSelected(Element.Items.ToList()[e.Position]); }
private void SubreddisListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { var clickedItem = Vm.SubredditsVM.Subreddits[e.Position]; Vm.SubredditsVM.GoToSub.Execute(clickedItem); }
private void StaffListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { EditAccount(e); }
private void OnItemClick(object sender, AdapterView.ItemClickEventArgs itemClickEventArgs) { OnItemClick(itemClickEventArgs.Position); }
private void patientVisitList_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { // Strats the next page which is a .cs file as a action of a button click event StartActivity(typeof(SessionData)); }
void Lv_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { //Toast.MakeText(this, _Products[e.Position].Name, ToastLength.Short).Show(); }