AutoCount Accounting 2.1 API: Difference between revisions

Line 57:
==3 MainEntry to start a subProject==
Calling the SubProjectStartup is to load the plug-in and also to activate the license.
In 2.1, there are 3 classes thatthe allowprogrammer user tocan call the subprojectstartupSubProjectStartup with different assembly and usage.
You may find the document at [[Initiate UserSession and DBSetting]].
 
===MainEntry in AutoCount.Accounting.dll===
'''MainEntry.Startup'''<br/>
This MainEntry is suitablecommonly used for integration use, or when no user interactionlogin is required to access and initiate AutoCount Accounting, and it does not load UI components.
<syntaxhighlight lang="csharp">
AutoCount.MainEntry.Startup startup = new AutoCount.MainEntry.Startup();
Line 75 ⟶ 76:
===MainEntry in AutoCount.Accounting.UI.dll===
'''MainEntry.MainStartup'''<br/>
This startupMainEntry callsopens the AutoCount Accounting user login form, andwith successful login, it returns the object of UserSession.<br/>
If user clicked [Cancel], the object of UserSession is null.
<syntaxhighlight lang="csharp">
Line 91 ⟶ 92:
===MainEntry in AutoCount.MainEntry.dll===
'''MainEntry.UIStartup'''<br/>
This MainEntry .UIStartup is similar to the MainEntry.Startup, except that it loads UI components.
<syntaxhighlight lang="csharp">
AutoCount.MainEntry.UIStartup startup = new AutoCount.MainEntry.UIStartup();