private void MyMap_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (!(_datetime.Hour == 0 && _datetime.Minute == 0 && _datetime.Second == 0))//not dive in on the first time { if (DateTime.Compare(_datetime.AddMilliseconds(500),DateTime.Now)>0)//the interval of two clicks is smaller than 0.5s { e.Handled = true; } } _datetime = DateTime.Now; }
Ingelogde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Maak gratis een account aan.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.