C# Class Nexus.Client.LoginForm

A form that gathers login credentials.
Inheritance: Nexus.Client.UI.ManagedFontForm
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Private Properties

Property Type Description
InitializeComponent void
LoginForm_FormClosed void
butCancel_Click void
butLogin_Click void
butOffline_Click void
lblError_TextChanged void

Public Methods

Method Description
LoginForm ( Nexus.Client.LoginFormVM p_vmlViewModel, LoginFormTask p_lftLoginTask ) : System

A simple constructor the initializes the object with the given values.

Protected Methods

Method Description
ApplyTheme ( Theme p_thmTheme ) : void

Applies the given theme to the form.

Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LoginForm_FormClosed ( object sender, EventArgs e ) : void
butCancel_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the conacel button.

butLogin_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the login button.

butOffline_Click ( object sender, EventArgs e ) : void
lblError_TextChanged ( object sender, EventArgs e ) : void

Handles the Control.TextChanged event of the error label.

Show or hides the error label, depending on whether it contains any text.

Method Details

ApplyTheme() protected method

Applies the given theme to the form.
protected ApplyTheme ( Theme p_thmTheme ) : void
p_thmTheme Theme The theme to apply.
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

LoginForm() public method

A simple constructor the initializes the object with the given values.
public LoginForm ( Nexus.Client.LoginFormVM p_vmlViewModel, LoginFormTask p_lftLoginTask ) : System
p_vmlViewModel Nexus.Client.LoginFormVM The view model that provides the data and operations for this view.
p_lftLoginTask LoginFormTask
return System