Initiate UserSession and DBSetting: Difference between revisions

no edit summary
No edit summary
No edit summary
(4 intermediate revisions by the same user not shown)
Line 1:
 
==Initiate UserSession and Connect to AutoCount Accounting 2.1==
This document shows how programmer can create a new connection to AutoCount Accounting and initiate the system.
 
There are 3 methods to establish connection to AutoCount Accounting 2.1.
# Unattended connection without loading UI components
Line 10 ⟶ 12:
{{Warn|UserSession must only initiate once in the application.
Do not create more than one instance in a running application. As it may consume system resource and has an impact on your application performance.<br/>
After obtained the object of UserSession, pass it as parameterargument into constructor or method.
}}
{{Note|Plug-in development does not require to create new connection to AutoCount Accounting.
Because, user has already login to the account book.<br>Programmer can access the UserSession that is sent as argument "e" at plug-in initiate, and as parameter in constructor.
}}
 
===Unattended Connection without loading UI components===
{{NugetPackages|AutoCount2.Accounting}}