Initiate UserSession and DBSetting: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3:
There are 3 methods to establish connection to AutoCount Accounting 2.1.
# Unattended connection without loading UI components
# Unattended connection that load UI components (needs UI components)
# User login to establish connection (needs UI components)
 
Line 15:
===Unattended Connection without loading UI components===
{{NugetPackages|AutoCount2.Accounting}}
This MainEntry is commonly used for integration, or when no user login is required to access and initiate AutoCount Accounting, and it does not load UI components.
 
<syntaxhighlight lang="csharp">
internal UserSession InitiateUserSessionUnattended(string serverName, string dbName, string userLogin, string userPasswd)
Line 38:
===Unattended connection that load UI components===
{{NugetPackages|AutoCount2.Accounting.UI}}
This MainEntry.UIStartup is similar to the MainEntry.Startup, except that it loads UI components. When MainEntry.UIStartup is used, AutoCount images and {{DevExpress}} are required.
<syntaxhighlight lang="csharp">
internal UserSession InitiateUserSessionUnattendedWithUI(string serverName, string dbName, string userLogin, string userPasswd)
Line 60 ⟶ 61:
 
{{NugetPackages|AutoCount2.MainEntry}}
This MainEntry opens the AutoCount Accounting user login form, and with successful login, it returns the object of the UserSession.<br>
If user clicked [Cancel], the object of UserSession is null.
<syntaxhighlight lang="csharp">
internal AutoCount.Authentication.UserSession InitiateUserSessionWithLogin()