C# Class BF2Statistics.PlayerSearchForm

Inheritance: System.Windows.Forms.Form
显示文件 Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Methods

Method Description
PlayerSearchForm ( ) : System

Constructor

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
BuildList ( ) : void

Fills the DataGridView with a list of players

DataTable_CellDoubleClick ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void

Event fired when a player is selected

DataTable_ColumnHeaderMouseClick ( object sender, System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void

Maunal Sorting of columns (Since Auto Sort sucks!)

FirstBtn_Click ( object sender, EventArgs e ) : void

Sets the current page to 1

InitializeComponent ( ) : void

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

LastBtn_Click ( object sender, EventArgs e ) : void

Sets the current page to the last page

LimitSelect_SelectedIndexChanged ( object sender, EventArgs e ) : void

Re-Filters the results when the limit is changed

NextBtn_Click ( object sender, EventArgs e ) : void

Increments the current page

PageNumber_ValueChanged ( object sender, EventArgs e ) : void

Builds the list when the PageNumber numeric upDown is changed

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

Closes the database connection

PreviousBtn_Click ( object sender, EventArgs e ) : void

Decrements the current page

SearchBox_TextChanged ( object sender, EventArgs e ) : void

Search OnKey Down function. Filters the List of players

contextMenu_Opening ( object sender, CancelEventArgs e ) : void

Fired everytime the context menu is opening. It disables some options if there is no player selected

deletePlayerMenuItem_Click ( object sender, EventArgs e ) : void

Delete Player Menu Item Click

exportPlayerMenuItem_Click ( object sender, EventArgs e ) : void

Export player menu item click

fromEAStatsServerMenuItem_Click ( object sender, EventArgs e ) : void

Imports players EA stats

fromPlayerExportSheetMenuItem_Click ( object sender, EventArgs e ) : void

Exports player XML sheet

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

PlayerSearchForm() public method

Constructor
public PlayerSearchForm ( ) : System
return System