C# Class _20.GameForm

Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: jdharms/20-20

Public Methods

Method Description
GameForm ( ) : System
getQuickPromptResult ( object sender, bool bizzare ) : string
print ( object o ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Private Methods

Method Description
GameForm_Load ( object sender, EventArgs e ) : void
GameForm_MouseDown ( object sender, MouseEventArgs e ) : void
InitializeComponent ( ) : void

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

confirmAndSendEvent ( Event e ) : bool

Confirms the user to send the an event. If they say it's okay, we tell alpaca to send it.

confirmScore ( bool endGame ) : bool

courtBox_DoubleClick ( object sender, EventArgs e ) : void
courtBox_MouseDown ( object sender, MouseEventArgs e ) : void

Draws the point, from the clicked location... TODO: Needs to be documented

courtBox_MouseMove ( object sender, MouseEventArgs e ) : void
courtBox_MouseUp ( object sender, MouseEventArgs e ) : void
deleteEvent_Click ( object sender, EventArgs e ) : void

Deletes the last event in the history box.

flipSides_Click ( object sender, EventArgs e ) : void
foul_Click ( object sender, EventArgs e ) : void

generateContextMenuLocation ( object sender ) : Point
generateDataFormLocation ( Button button ) : Point
historyBox_Click ( object sender, EventArgs e ) : void
historyBox_MouseMove ( object sender, MouseEventArgs e ) : void

TODO: needs to be documented...COUGH COUGH, thats you daniel

jumpball_Click ( object sender, EventArgs e ) : void

madeShot_Click ( object sender, EventArgs e ) : void

missedShot_Click ( object sender, EventArgs e ) : void

periodChange_Click ( object sender, EventArgs e ) : void

Handles the click of the Period Start/End button

playerSelect_KeyPress ( object sender, KeyPressEventArgs e ) : void
playerSelect_click ( object sender, EventArgs e ) : void

Performed when a player label is clicked on. Will set the players that were selected

resetFirstSecondSelected ( ) : void
subPlayer_click ( object sender, EventArgs e ) : void

sub_DoubleClick ( object sender, EventArgs e ) : void
timeout_Click ( object sender, EventArgs e ) : void

turnover_MouseDown ( object sender, MouseEventArgs e ) : void

update ( ) : void

Upadates all elements of the form that needs to be updated. Authors: Daniel and Johny

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

GameForm() public method

public GameForm ( ) : System
return System

ProcessCmdKey() protected method

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
return bool

getQuickPromptResult() public method

public getQuickPromptResult ( object sender, bool bizzare ) : string
sender object
bizzare bool
return string

print() public method

public print ( object o ) : void
o object
return void