C# Class Sharpcraft.Launcher

Launcher form for Sharpcraft, handles user authentication and game start.
Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Private Properties

Property Type Description
CloseGame void
GameExit void
InitializeComponent void
LauncherFormClosed void
LoginButtonClick void
LoginEvent void
PassBoxEnter void
PassBoxLeave void
PassBoxTextChanged void
RegisterLinkLinkClicked void
RunGame void
SetState void
UpdateForm void
UserBoxEnter void
UserBoxLeave void
UserBoxTextChanged void
ValidLogin bool
VersionLabelClick void

Public Methods

Method Description
Launcher ( ) : System

Initializes a new instance of the Sharpcraft Launcher.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CloseGame ( ) : void

Close the game and unload components.

GameExit ( object sender, EventArgs e ) : void

Event handler for Game.Exiting event.

InitializeComponent ( ) : void

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

LauncherFormClosed ( object sender, System.Windows.Forms.FormClosedEventArgs e ) : void

Fires when the launcher closes, sends close request to main program and exits application.

LoginButtonClick ( object sender, EventArgs e ) : void

Handler for when user presses the login button.

LoginEvent ( LoginEventArgs e ) : void

Login event handler.

PassBoxEnter ( object sender, EventArgs e ) : void

Handler for when the password box gains focus.

PassBoxLeave ( object sender, EventArgs e ) : void

Handler for when the password box loses focus.

PassBoxTextChanged ( object sender, EventArgs e ) : void

Handler for when the text in the password box changes.

RegisterLinkLinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void

Handler for when user clicks the "Register" link.

Opens the URL "http://www.minecraft.net/register" using Process.Start();

RunGame ( ) : void

Runs the game.

SetState ( bool enabled ) : void

Sets the state of the form.

UpdateForm ( ) : void

Updates the form controls.

UserBoxEnter ( object sender, EventArgs e ) : void

Handler for when the username box gets focus-

UserBoxLeave ( object sender, EventArgs e ) : void

Handler for when the username box loses focus.

UserBoxTextChanged ( object sender, EventArgs e ) : void

Handler for when the text in the username box changes.

ValidLogin ( ) : bool

Checks the username and password boxes to determine if they are valid.

VersionLabelClick ( object sender, EventArgs e ) : void

Opens the GitHub URL in browser to show info about the commit.

Method Details

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

Launcher() public method

Initializes a new instance of the Sharpcraft Launcher.
public Launcher ( ) : System
return System