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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.