C# Class CinderellaLauncher.ClientApp

Inheritance: System.Windows.Forms.Form
Show file Open project: ThomasMoreCollege/CinderellaMGS

Public Methods

Method Description
ClientApp ( ) : System
GetServerIP ( ) : string
onAppExit ( object sender, FormClosingEventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ClientApp_FormClosing ( object sender, FormClosingEventArgs e ) : void

The method below indicates that the form close.

ClientApp_Load ( object sender, EventArgs e ) : void
ClientApp_Resize ( object sender, EventArgs e ) : void
Flash ( bool stop ) : void
FlashWindowEx ( FLASHWINFO &pwfi ) : Int32
InitializeComponent ( ) : void

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

InitializeConnection ( ) : void
UpdateLog ( string message ) : void
closeConnection ( string reason ) : void
connectButton_Click ( object sender, EventArgs e ) : void
recieveMessage ( ) : void

Create the recieveMessage method. This method is implemented for the chat user to recieve messages.

sendButton_Click ( object sender, EventArgs e ) : void
sendMessage ( ) : void
txtChatName_KeyPress ( object sender, KeyPressEventArgs e ) : void
txtIP_TextChanged ( object sender, EventArgs e ) : void
txtMessage_KeyPress ( object sender, KeyPressEventArgs e ) : void

Method Details

ClientApp() public method

public ClientApp ( ) : System
return System

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

GetServerIP() public method

public GetServerIP ( ) : string
return string

onAppExit() public method

public onAppExit ( object sender, FormClosingEventArgs e ) : void
sender object
e System.Windows.Forms.FormClosingEventArgs
return void