public class GPSValues_Win : ProjectExtension { private CollectFeaturesTask m_collectFeaturesTask; private GpsConnection gps; private GpsAveragingGeometryCollectionMethod m_GPSAveraging; protected override void Initialize() { gps = MobileApplication.Current.GpsConnectionManager.Connection; m_collectFeaturesTask = MobileApplication.Current.Project.Tasks.GetFirstExtensionOfType(typeof(CollectFeaturesTask)) as CollectFeaturesTask; m_GPSAveraging = new GpsAveragingGeometryCollectionMethod(); //m_GPSAveraging.Completed += new EventHandler<CompletedEventArgs>(Geometry_Completed); m_GPSAveraging.Completed += new EventHandler<CompletedEventArgs>(m_GPSAveraging_Completed); //ESRI.ArcGIS.Mobile.Client.Windows.MessageBox.ShowDialog("this happens whe you device to pick a collection method"); } void m_GPSAveraging_Completed(object sender, CompletedEventArgs e) { ESRI.ArcGIS.Mobile.Client.Windows.MessageBox.ShowDialog("This happens when GPS is complete"); }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.