C# Class ERP.LoginUI.LoginRegistrationWindow

Inheritance: System.Windows.Controls.ChildWindow
Exibir arquivo Open project: arthurgfonseca/ERP-Grupo5 Class Usage Examples

Public Methods

Method Description
AddPendingOperation ( OperationBase operation ) : void

Notifies the LoginRegistrationWindow window that it can only close if operation is finished or can be cancelled

LoginRegistrationWindow ( ) : System

Creates a new LoginRegistrationWindow instance.

NavigateToLogin ( ) : void

Causes the VisualStateManager to change to the "AtLogin" state.

NavigateToRegistration ( ) : void

Causes the VisualStateManager to change to the "AtRegistration" state.

Private Methods

Method Description
GoToInitialState ( object sender, EventArgs eventArgs ) : void

Initializes the VisualStateManager for this component by putting it into the "AtLogin" state

InitializeComponent ( ) : void
LoginWindow_Closing ( object sender, System.CancelEventArgs eventArgs ) : void

Prevents the window from closing while there are operations in progress

UpdateTitle ( object sender, EventArgs eventArgs ) : void

Updates the window title according to which panel (registration / login) is currently being displayed

Method Details

AddPendingOperation() public method

Notifies the LoginRegistrationWindow window that it can only close if operation is finished or can be cancelled
public AddPendingOperation ( OperationBase operation ) : void
operation OperationBase The pending operation to monitor
return void

LoginRegistrationWindow() public method

Creates a new LoginRegistrationWindow instance.
public LoginRegistrationWindow ( ) : System
return System

NavigateToLogin() public method

Causes the VisualStateManager to change to the "AtLogin" state.
public NavigateToLogin ( ) : void
return void

NavigateToRegistration() public method

Causes the VisualStateManager to change to the "AtRegistration" state.
public NavigateToRegistration ( ) : void
return void