Interface IApplicationController
Defines methods to execute application related tasks.
Namespace: Sartorius.SAF.Presentation
Assembly: Sartorius.SAF.Presentation.Application.dll
Syntax
public interface IApplicationController
Methods
View SourceChangePwd(Action)
Starts a dialog to change password if UseLogin == true (application configuration settings)
Declaration
void ChangePwd(Action ShowHelp = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action | ShowHelp | the action that is called when help is supported by the dialog. Defining the action means help is supported. Default is null meaning help is not supported |
HandleSessionEnding(SessionEndingCancelEventArgs)
Handle a system events of type SessionEnding.
Declaration
void HandleSessionEnding(SessionEndingCancelEventArgs sessionEvent)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.SessionEndingCancelEventArgs | sessionEvent | A value that indicates a System.Windows.SessionEndingCancelEventArgs. |
HandleSessionSwitch(SessionSwitchReason)
Handle a system events of type SessionSwitch.
Declaration
void HandleSessionSwitch(SessionSwitchReason sessionEvent)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Win32.SessionSwitchReason | sessionEvent | A value that indicates a Microsoft.Win32.SessionSwitchReason. |
LockApplication(Action)
Locks the application.
Declaration
void LockApplication(Action ShowHelp = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action | ShowHelp | the action that is called when help is supported by the dialog. Defining the action means help is supported. Default is null meaning help is not supported |
Login(Action)
Starts the login process if UseLogin == true (application configuration settings)
Declaration
bool Login(Action ShowHelp = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action | ShowHelp | the action that is called when help is supported by the dialog. Defining the action means help is supported. Default is null meaning help is not supported |
Returns
Type | Description |
---|---|
System.Boolean | True if the login is successful, otherwise false. |
RestartApplication()
Restarts the application by invoking the RestartingApplication event.
Declaration
void RestartApplication()
Events
View SourceRestartingApplication
Event for restarting the application.
Declaration
event Action RestartingApplication
Event Type
Type | Description |
---|---|
System.Action |