private void CollectRadiationDataByMap(string featureTypeName) { try { Cursor.Current = Cursors.WaitCursor; // Cache homepage for the application // Once data collection is done, we come back to this cached page _homePage = MobileApplication.Current.CurrentPage; // Reset _feature and _featureType _feature = null; _featureType = FindFeatureTypeByName(featureTypeName); if (_featureType == null) { ESRI.ArcGIS.Mobile.Client.Windows.MessageBox.ShowDialog("Can't find " + featureTypeName + ".", "Warning"); return; } // Create a new Feature, this will automatically call StartEditing on this feature _feature = new Feature(_featureType, null); // If this is the first time, create a SketchGeometryCollectionMethod, // and listen to its Completed event. Once user accepts geometry, this event // will be fired if (_sketchGeometryCollectionMethod == null) { _sketchGeometryCollectionMethod = new SketchGeometryCollectionMethod(); _sketchGeometryCollectionMethod.Completed += new EventHandler<CompletedEventArgs>(_sketchGeometryCollectionMethod_Completed); } _sketchGeometryCollectionMethod.GeometryCollectionPage.Title = "Collect " + _featureType.Name; _sketchGeometryCollectionMethod.GeometryCollectionPage.Note = "Create " + _featureType.Name + " by digitizing on the map"; _sketchGeometryCollectionMethod.StartGeometryCollection(_feature); SaveTeamInfoClass.SaveTeamInfo(_feature); } finally { Cursor.Current = Cursors.Default; } }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.