ArcGISRuntime.WPF.Samples.FeatureCollectionLayerFromPortal.FeatureCollectionLayerFromPortal.OpenPortalFeatureCollectionClick C# (CSharp) Метод

OpenPortalFeatureCollectionClick() приватный Метод

private OpenPortalFeatureCollectionClick ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Результат void
        private void OpenPortalFeatureCollectionClick(object sender, RoutedEventArgs e)
        {
            // Get the portal item Id from the user
            var collectionItemId = CollectionItemIdTextBox.Text.Trim();

            // Make sure an Id was entered
            if(string.IsNullOrEmpty(collectionItemId))
            {
                MessageBox.Show("Please enter a portal item ID", "Feature Collection ID");
                return;
            }

            // Call a function to add the feature collection from the specified portal item
            OpenFeaturesFromArcGISOnline(collectionItemId);
        }
    }