C# Class Client.ClientSideMenu

Lacey Townes
Show file Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Public Properties

Property Type Description
info ClientConfirm
shiptype int
testIP object
userName String

Public Methods

Method Description
ClientSideMenu ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
BStart_Click ( object sender, EventArgs e ) : void

BStart_Click. This method is called when the "Start" button is clicked. It creates a new ClientConfirm form, passes itself. It only closes the ClientSideMenu if the user selects yes from the confirm method.

IIPAddresses_SelectedIndexChanged ( object sender, EventArgs e ) : void

IIPAddresses_SelectedIndexChanged method. This method is called when the user selects an IP address from the dropdown list

IName_TextChanged ( object sender, EventArgs e ) : void

IName_TextChanged. Method that is called when "IName" text has changed. It sets userName to whatever is entered.

IShiptype_SelectedIndexChanged ( object sender, EventArgs e ) : void

IShiptype_SlectedIndexChanged. Method that is called when the user selects an item from the drop down list of ship types. It sets shipType

InitializeComponent ( ) : void

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

Method Details

ClientSideMenu() public method

public ClientSideMenu ( ) : 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

Property Details

info public property

public ClientConfirm,Client info
return ClientConfirm

shiptype public property

public int shiptype
return int

testIP public property

public object testIP
return object

userName public property

The ClientSideMenu constructor, this initilizes the components and sets the testIp addresses
public String userName
return String