<?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 Use of &amp;quot;GarciaUI_ModifyFeatureTask&amp;quot; in Addin Tool/Button Code in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/use-of-quot-garciaui-modifyfeaturetask-quot-in/m-p/12879#M95</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a series of edit COM objects which need to be converted to Addins. &amp;nbsp;I have converted each edit operation to a button Add-In in C#. &amp;nbsp;However, some of the operations handle 'Edit Tasks' and use code such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="background-color: #ffffff; font-size: 15.2352px; margin: 15px;"&gt;&lt;PRE class="" style="font-size: 11.52px;"&gt;&lt;SPAN class="" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (m_editor == &lt;SPAN class="" style="color: #0000ff;"&gt;null&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: #0000ff;"&gt;return&lt;/SPAN&gt; ;&amp;nbsp;&amp;nbsp; IEditTaskSearch editTaskSearch = editor &lt;SPAN class="" style="color: #0000ff;"&gt;as&lt;/SPAN&gt; IEditTaskSearch;&amp;nbsp;&amp;nbsp; IEditTask editTask = editTaskSearch.get_TaskByUniqueName(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: maroon;"&gt;"GarciaUI_ModifyFeatureTask"&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;or with use of a 'Find'. &amp;nbsp;The converted 'buttons' are part of a C# extension in a toolbar. &amp;nbsp;The buttons seem to work in unit tests but I am worried about the use of such a 'task' in an AddIn. &amp;nbsp; However, I am concerned about the use in a production environment. &amp;nbsp;Can anyone comment on their experience with this type of conversion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2016 09:39:15 GMT</pubDate>
    <dc:creator>MaryFricke</dc:creator>
    <dc:date>2016-10-06T09:39:15Z</dc:date>
    <item>
      <title>Use of "GarciaUI_ModifyFeatureTask" in Addin Tool/Button Code</title>
      <link>https://community.esri.com/t5/developers-questions/use-of-quot-garciaui-modifyfeaturetask-quot-in/m-p/12879#M95</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a series of edit COM objects which need to be converted to Addins. &amp;nbsp;I have converted each edit operation to a button Add-In in C#. &amp;nbsp;However, some of the operations handle 'Edit Tasks' and use code such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="background-color: #ffffff; font-size: 15.2352px; margin: 15px;"&gt;&lt;PRE class="" style="font-size: 11.52px;"&gt;&lt;SPAN class="" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (m_editor == &lt;SPAN class="" style="color: #0000ff;"&gt;null&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: #0000ff;"&gt;return&lt;/SPAN&gt; ;&amp;nbsp;&amp;nbsp; IEditTaskSearch editTaskSearch = editor &lt;SPAN class="" style="color: #0000ff;"&gt;as&lt;/SPAN&gt; IEditTaskSearch;&amp;nbsp;&amp;nbsp; IEditTask editTask = editTaskSearch.get_TaskByUniqueName(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: maroon;"&gt;"GarciaUI_ModifyFeatureTask"&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;or with use of a 'Find'. &amp;nbsp;The converted 'buttons' are part of a C# extension in a toolbar. &amp;nbsp;The buttons seem to work in unit tests but I am worried about the use of such a 'task' in an AddIn. &amp;nbsp; However, I am concerned about the use in a production environment. &amp;nbsp;Can anyone comment on their experience with this type of conversion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-of-quot-garciaui-modifyfeaturetask-quot-in/m-p/12879#M95</guid>
      <dc:creator>MaryFricke</dc:creator>
      <dc:date>2016-10-06T09:39:15Z</dc:date>
    </item>
  </channel>
</rss>

