<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic 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. in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/i-made-a-button-in-c-when-i-click-on-it-in-arcgis/m-p/146256#M3831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;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?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2016 08:22:22 GMT</pubDate>
    <dc:creator>MuhammadUmair</dc:creator>
    <dc:date>2016-05-02T08:22:22Z</dc:date>
    <item>
      <title>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.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/i-made-a-button-in-c-when-i-click-on-it-in-arcgis/m-p/146256#M3831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;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?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 08:22:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/i-made-a-button-in-c-when-i-click-on-it-in-arcgis/m-p/146256#M3831</guid>
      <dc:creator>MuhammadUmair</dc:creator>
      <dc:date>2016-05-02T08:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: 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.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/i-made-a-button-in-c-when-i-click-on-it-in-arcgis/m-p/146257#M3832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 12:25:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/i-made-a-button-in-c-when-i-click-on-it-in-arcgis/m-p/146257#M3832</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2016-05-02T12:25:20Z</dc:date>
    </item>
  </channel>
</rss>

