<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.tntware.com/donorwise/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>How can I develop a plugin in C# that adds new features to DonorWise?</title><link>https://www.tntware.com/donorwise/faqs/en/how-can-i-develop-a-plugin-in-c-that-adds-new-features-to-donorwise.aspx</link><description /><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP2 (Debug Build: 40407.4157)</generator><item><title>How can I develop a plugin in C# that adds new features to DonorWise?</title><link>https://www.tntware.com/donorwise/faqs/en/how-can-i-develop-a-plugin-in-c-that-adds-new-features-to-donorwise.aspx</link><pubDate>Mon, 02 Jul 2012 19:44:03 GMT</pubDate><guid isPermaLink="false">de06579a-5120-4393-a24b-6f68f5e7a3ec:16</guid><dc:creator>Troy Wolbrink</dc:creator><comments>https://www.tntware.com/donorwise/faqs/en/how-can-i-develop-a-plugin-in-c-that-adds-new-features-to-donorwise/comments.aspx</comments><description>Current revision posted to Frequently Asked Questions by Troy Wolbrink on 7/2/2012 7:44:03 PM&lt;br /&gt;
&lt;h2&gt;How can I develop a plugin in C# that adds new features to DonorWise?&lt;/h2&gt;
&lt;div style="font-size: 90%;"&gt;Filed under: Developer Guides&lt;/div&gt;

&lt;p&gt;Check out the FAQ &amp;ldquo;&lt;a href="/donorwise/faqs/en/what-can-plug-ins-do-in-donorwise-3-0-and-newer.aspx"&gt;What can plug-ins do in DonorWise 3.0 and newer?&lt;/a&gt;&amp;rdquo;.&amp;nbsp; This show screenshots and general capabilities of what plugins can do.&amp;nbsp; The demo plug-in referred to in that article requires &lt;strong&gt;DonorWise 3.0 or newer&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;You can dowload the demo plug-in (Visual Studio 2010 Project) here.&lt;br /&gt;&lt;br /&gt;&lt;span style="background: SpringGreen;"&gt;[&lt;/span&gt;&lt;span style="background: SpringGreen;"&gt;View:http://www.tntware.com/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/3580.SamplePlugin.zip:550:0]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To learn more about the details of coding against the api, explore the &lt;span style="text-decoration: line-through; color: red;"&gt;&amp;ldquo;Plugins.cs&amp;rdquo;&lt;/span&gt; &lt;span style="background: SpringGreen;"&gt;&amp;ldquo;&lt;/span&gt;&lt;strong&gt;&lt;span style="background: SpringGreen;"&gt;Plugins.cs&lt;/span&gt;&lt;/strong&gt;&lt;span style="background: SpringGreen;"&gt;&amp;rdquo;&lt;/span&gt; file in the demo project.&amp;nbsp; It&amp;rsquo;s well documented, and is the starting point for the rest of the project.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;To run the demo project (or any plugin project you might be developing), make sure you&amp;#39;re running Visual Studio 2008/2010 &amp;quot;As Administrator&amp;quot;.&amp;nbsp; This is because you&amp;#39;ll compile the project to the &amp;quot;C:\Program Files\DonorWise\plugins&amp;quot; folder.&amp;nbsp; This folder doesn&amp;#39;t allow write access to normal users.&lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/5482.VS-_2D00_-Run-as-Admin.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/5482.VS-_2D00_-Run-as-Admin.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When DonorWise starts up, it looks in the &amp;quot;plugins&amp;quot; folder for any .NET assemblies with any classes that implement the IDonorWisePlugin interface.&amp;nbsp; For any that exist, new entries are added to the list of Plugins available in the &amp;ldquo;Plugins&amp;rdquo; tab of System Setup in DonorWise.&amp;nbsp; You&amp;rsquo;ll need to check the box to enable this plugin (for the current database) and then logout and login again.&lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/5148.DW-_2D00_-plugins-system-setup-tab.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/5148.DW-_2D00_-plugins-system-setup-tab.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Creating a New Project&lt;/h2&gt;
&lt;p&gt;In Visual Studio, start off by creating a new C# Class LIbrary:&lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/7317.VS-_2D00_-Create-Project.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/7317.VS-_2D00_-Create-Project.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then, add a reference to &amp;quot;C:\Program Files (x86)\DonorWise\DonorWise.SDK.dll&amp;quot; to your project: &lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/3223.VS-_2D00_-Add-Reference.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/3223.VS-_2D00_-Add-Reference.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Be sure to set &amp;quot;Copy Local&amp;quot; to false in the properties window for the reference to &amp;ldquo;DonorWise.SDK.dll&amp;rdquo;&lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/6114.VS-_2D00_-Copy-Local.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/6114.VS-_2D00_-Copy-Local.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Under the &amp;quot;Project&amp;quot; menu, click on &amp;quot;Properties&amp;quot; and on the Build tab, set the output path to the &amp;quot;plugins&amp;quot; folder. &lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/0310.VS-_2D00_-Output-path.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/0310.VS-_2D00_-Output-path.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;On the &amp;quot;Debug&amp;quot; tab, set it to &amp;quot;Start External Program&amp;quot; and tell it to use DonorWise.exe. &lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/0081.VS-_2D00_-Debug-tab.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/0081.VS-_2D00_-Debug-tab.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;Now, the project is all setup and you can begin coding!&amp;nbsp;&lt;/h3&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How can I develop a plugin in C# that adds new features to DonorWise?</title><link>https://www.tntware.com/donorwise/faqs/en/how-can-i-develop-a-plugin-in-c-that-adds-new-features-to-donorwise/revision/1.aspx</link><pubDate>Mon, 02 Jul 2012 19:41:39 GMT</pubDate><guid isPermaLink="false">de06579a-5120-4393-a24b-6f68f5e7a3ec:20</guid><dc:creator>Troy Wolbrink</dc:creator><comments>https://www.tntware.com/donorwise/faqs/en/how-can-i-develop-a-plugin-in-c-that-adds-new-features-to-donorwise/comments.aspx</comments><description>Revision 1 posted to Frequently Asked Questions by Troy Wolbrink on 7/2/2012 7:41:39 PM&lt;br /&gt;
&lt;p&gt;Check out the FAQ &amp;ldquo;&lt;a href="/donorwise/faqs/en/what-can-plug-ins-do-in-donorwise-3-0-and-newer.aspx"&gt;What can plug-ins do in DonorWise 3.0 and newer?&lt;/a&gt;&amp;rdquo;.&amp;nbsp; This show screenshots and general capabilities of what plugins can do.&amp;nbsp; The demo plug-in referred to in that article requires &lt;strong&gt;DonorWise 3.0 or newer&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;You can dowload the demo plug-in (Visual Studio 2010 Project) here.&lt;/p&gt;
&lt;p&gt;To learn more about the details of coding against the api, explore the &amp;ldquo;Plugins.cs&amp;rdquo; file in the demo project.&amp;nbsp; It&amp;rsquo;s well documented, and is the starting point for the rest of the project.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;To run the demo project (or any plugin project you might be developing), make sure you&amp;#39;re running Visual Studio 2008/2010 &amp;quot;As Administrator&amp;quot;.&amp;nbsp; This is because you&amp;#39;ll compile the project to the &amp;quot;C:\Program Files\DonorWise\plugins&amp;quot; folder.&amp;nbsp; This folder doesn&amp;#39;t allow write access to normal users.&lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/5482.VS-_2D00_-Run-as-Admin.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/5482.VS-_2D00_-Run-as-Admin.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When DonorWise starts up, it looks in the &amp;quot;plugins&amp;quot; folder for any .NET assemblies with any classes that implement the IDonorWisePlugin interface.&amp;nbsp; For any that exist, new entries are added to the list of Plugins available in the &amp;ldquo;Plugins&amp;rdquo; tab of System Setup in DonorWise.&amp;nbsp; You&amp;rsquo;ll need to check the box to enable this plugin (for the current database) and then logout and login again.&lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/5148.DW-_2D00_-plugins-system-setup-tab.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/5148.DW-_2D00_-plugins-system-setup-tab.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Creating a New Project&lt;/h2&gt;
&lt;p&gt;In Visual Studio, start off by creating a new C# Class LIbrary:&lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/7317.VS-_2D00_-Create-Project.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/7317.VS-_2D00_-Create-Project.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then, add a reference to &amp;quot;C:\Program Files (x86)\DonorWise\DonorWise.SDK.dll&amp;quot; to your project: &lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/3223.VS-_2D00_-Add-Reference.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/3223.VS-_2D00_-Add-Reference.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Be sure to set &amp;quot;Copy Local&amp;quot; to false in the properties window for the reference to &amp;ldquo;DonorWise.SDK.dll&amp;rdquo;&lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/6114.VS-_2D00_-Copy-Local.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/6114.VS-_2D00_-Copy-Local.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Under the &amp;quot;Project&amp;quot; menu, click on &amp;quot;Properties&amp;quot; and on the Build tab, set the output path to the &amp;quot;plugins&amp;quot; folder. &lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/0310.VS-_2D00_-Output-path.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/0310.VS-_2D00_-Output-path.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;On the &amp;quot;Debug&amp;quot; tab, set it to &amp;quot;Start External Program&amp;quot; and tell it to use DonorWise.exe. &lt;br /&gt;&lt;br /&gt;&lt;a href="/donorwise/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/en/0081.VS-_2D00_-Debug-tab.png"&gt;&lt;img src="/donorwise/cfs-filesystemfile.ashx/__key/CommunityServer.Components.ImageFileViewer/CommunityServer.Wikis.Components.Files.en/0081.VS-_2D00_-Debug-tab.png_2D00_550x0.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;Now, the project is all setup and you can begin coding!&amp;nbsp;&lt;/h3&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>