Select to view content in your preferred language

I made a button in c#, when i click on it in ArcGIS, it changes the background color of layout view. But now i want to make the code for re-clicking the same button and it will change the background color again.

2375
1
05-02-2016 01:22 AM
MuhammadUmair
Deactivated User


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?

0 Kudos
1 Reply
FreddieGibson
Honored Contributor

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.

0 Kudos