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; }
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.