C# Class Client.ClientSideMenu

Lacey Townes
ファイルを表示 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_oe property

public ClientConfirm,Client info
return ClientConfirm

shiptype public_oe property

public int shiptype
return int

testIP public_oe property

public object testIP
return object

userName public_oe property

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