My question is, where in C# button class, is the right place to add the code that will run, when i click the button second time?
Trying adding a global boolean static property to your button class and leverage it in the onclick event to govern your even/odd click behavior. You could initialize it in the constructor of the class and then toggle its value within your onclick event.
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.