Show / Hide Table of Contents

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 Source

ChangePwd(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

View Source

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.

View Source

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.

View Source

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

View Source

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.

View Source

RestartApplication()

Restarts the application by invoking the RestartingApplication event.

Declaration
void RestartApplication()

Events

View Source

RestartingApplication

Event for restarting the application.

Declaration
event Action RestartingApplication
Event Type
Type Description
System.Action

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX