Ejemplo n.º 1
0
 /// <summary>
 /// When a floor is selected by the user, set global variable to the selected floor and set definition query on the feature layers
 /// </summary>
 /// <param name="sender">Sender element.</param>
 /// <param name="e">Event args.</param>
 private void FloorsTableSource_TableRowSelected(object sender, TableRowSelectedEventArgs <string> e)
 {
     this.ViewModel.SelectedFloorLevel = e.SelectedItem;
     this.ViewModel.SetFloorVisibility(true);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Get the value selected in the Autosuggestions Table
        /// </summary>
        /// <param name="sender">Sender element.</param>
        /// <param name="e">Event args.</param>
        private async void AutosuggestionsTableSource_TableRowSelected(object sender, TableRowSelectedEventArgs <SuggestResult> e)
        {
            var selectedItem = e.SelectedItem;

            this.LocationSearchBar.Text = selectedItem.Label;
            this.LocationSearchBar.ResignFirstResponder();
            this.AutosuggestionsTableView.Hidden = true;
            await this.GetSearchedFeatureAsync(selectedItem.Label);
        }