Exercise 1: Build AutoCount Accounting 2.0 Plug-In: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 28:
===Add AutoCount Accounting 2.0 References to Project===
[[File:BrowseReference.PNG|link=]]
{{Note|Suggest to copy the dll to a folder and rename the folder to AutoCount Accounting version. Eg.: AC2.0.0.55.<br />So that when necessity arises, programmer can maintain multiple versions of Plug-Ins.}}
# Add References Window
# Browse to AutoCount Accounting 2.0 folder
Line 60:
{
public PlugInMain() : base(new Guid("12D34B4A-692D-46DE-8D7D-B3520D4CA679"),
"My PlugIn for AC 2.0", "21.0.0.1")
{
}
Line 70:
<syntaxhighlight lang="csharp" highlight="5-9,12,14">
public PlugInMain() : base(new Guid("12D34B4A-692D-46DE-8D7D-B3520D4CA679"),
"My PlugIn for AC 2.0", "21.0.0.1")
{
//Enter your Company Profile registered with AutoCount's Developer ID
Line 80:
 
//Minimum AutoCount Accounting version is required
SetMinimumAccountingVersionRequired("2.0.0.55");
//Set this Plug-In is free
SetIsFreeLicense(true);
Line 87:
 
<syntaxhighlight lang="csharp">
SetMinimumAccountingVersionRequired("2.0.0.55");
</syntaxhighlight>
* AutoCount Accounting version that is lower than 2.0.0.55 will not be able to run this Plug-In.
* To ensure assemblies version compatibility between AutoCount Accounting and Plug-In;
* when Plug-In applies methods and properties that are introduced in newer version of AutoCount Accounting.
<syntaxhighlight lang="csharp">
SetIsFreeLicense(false);
</syntaxhighlight>
* Set whether the plug-in is '''free''' or '''License Required'''.
* Set to '''false''' if the plug-in has expiry date or license control.
 
===BeforeLoad===