Show / Hide Table of Contents

Class ApplicationController

Is responsible for controlling application related actions.

Inheritance
System.Object
ApplicationController
Implements
IApplicationController
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation
Assembly: Sartorius.SAF.Presentation.Application.dll
Syntax
public class ApplicationController : IApplicationController

Constructors

View Source

ApplicationController(IServiceFactory, CurrentUser, Boolean, IOverlayEffect)

Creates a new Instance of the ApplicationController.

Declaration
public ApplicationController(IServiceFactory serviceFactory, CurrentUser currentUser, bool userLoginDialog, IOverlayEffect overlayEffect)
Parameters
Type Name Description
IServiceFactory serviceFactory

Implementation of IServiceFactory.

CurrentUser currentUser

Contains information about the current user.

System.Boolean userLoginDialog

Indicates whether the login process of the framework should be used.

IOverlayEffect overlayEffect

An implementation of the IOverlayEffect.

Properties

View Source

UseSecurity

Gets a value indicating whether the application is using the security components and the login dialog should be used.

Declaration
public virtual bool UseSecurity { get; }
Property Value
Type Description
System.Boolean

Methods

View Source

ChangePwd(Action)

Starts a dialog to change password if UseLogin == true (application configuration settings)

Declaration
public 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
public 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
public void HandleSessionSwitch(SessionSwitchReason sessionEvent)
Parameters
Type Name Description
Microsoft.Win32.SessionSwitchReason sessionEvent

A value that indicates a Microsoft.Win32.SessionSwitchReason.

View Source

InitializeApplicationLock(LockConfiguration)

Initializes lock mechanism of the application.

Declaration
public void InitializeApplicationLock(LockConfiguration configuration)
Parameters
Type Name Description
LockConfiguration configuration

The lock configuration.

View Source

LockApplication(Action)

Locks the application.

Declaration
public virtual 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

Remarks

If the application is locked, only the user who locked the application can unlock it. When the lock screen is canceled, the application is closed. UI Settings are saved when the application is closed.

View Source

Login(Action)

Login method with default LoginDialogArgs

Declaration
public 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.

Declaration
public void RestartApplication()

Events

View Source

RestartingApplication

Event for restarting the application.

Declaration
public event Action RestartingApplication
Event Type
Type Description
System.Action

Implements

IApplicationController

Extension Methods

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