C# Class BF2Statistics.MapListForm

Show file Open project: BF2Statistics/ControlCenter Class Usage Examples

Protected Properties

Property Type Description
MapImage Bitmap

Public Methods

Method Description
MapListForm ( ) : System

Constructor

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

GameModeToString ( string mode ) : string

Parses a maplist.con game mode variable into a human readable one.

Private Methods

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

Adds completed map selections to the Maplist

CancelBtn_Click ( object sender, EventArgs e ) : void

Cancels any changes made to the maplist, and closes the form

ClearButton_Click ( object sender, EventArgs e ) : void

Clears the current Maplist

GameModeSelect_SelectedIndexChanged ( object sender, EventArgs e ) : void

Event fired when the client selects a Map Gamemode

InitializeComponent ( ) : void

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

MapListSelect_SelectedIndexChanged ( object sender, EventArgs e ) : void

Called when a map is selected or changed

MapPictureBox_DoubleClick ( object sender, EventArgs e ) : void

Event fired when the map image is clicked

MapSizeSelect_SelectedIndexChanged ( object sender, EventArgs e ) : void

Event fired when a mapsize is selected

RandomizeBtn_Click ( object sender, EventArgs e ) : void

Shuffles the maps listed in the MapList box

SaveButton_Click ( object sender, EventArgs e ) : void

Saves the maplist to the maplist.com file

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

GameModeToString() protected method

Parses a maplist.con game mode variable into a human readable one.
protected GameModeToString ( string mode ) : string
mode string The gamemode from the maplist.con
return string

MapListForm() public method

Constructor
public MapListForm ( ) : System
return System

Property Details

MapImage protected property

Contains the full sized bitmap image of the selected map
protected Bitmap MapImage
return Bitmap