C# Class Settings.gameForm

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

Public Properties

Property Type Description
mGamesSelected List

Public Methods

Method Description
gameForm ( ) : System

Form constructor Sets placeholder text

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CheckInput ( string input ) : string

Checks if the input value is a steam url, or can be formatted as one

InitializeComponent ( ) : void

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

LoadAvailableGames ( ) : void

Loads all games from available games list into listboxes

RefreshLists ( ) : void

Sorts the global lists by name and adds them to the listboxes

SendMessage ( IntPtr hWnd, int msg, int wParam, [ lParam ) : int
ShowLoading ( bool show ) : void

Shows/Hides the loading animation

backgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void

Bwg main worker Fetches game list from steam profile

backgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Bwg completed Adds all the games fetched to the listbox

gameForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Closing event Since we want to be able to access the game list after user closes form we'll just hide it instead, and then close it from mainForm when we're done

gameList_SelectedIndexChanged ( object sender, EventArgs e ) : void

Adds the selected game to selected games and removes it from games

lvlExampleInput_Click ( object sender, EventArgs e ) : void

Input example click Shows several ways to input acceptable data

lvlExampleInput_MouseEnter ( object sender, EventArgs e ) : void

Highlight when mouse over

lvlExampleInput_MouseLeave ( object sender, EventArgs e ) : void

De-highlight when mouse over

selectedList_SelectedIndexChanged ( object sender, EventArgs e ) : void

Re-adds the selected game to games and removes it from selected games Just reverse of the above function

txtProfile_KeyDown ( object sender, KeyEventArgs e ) : void

txtProfile keydown If input is valid it will start the background worker and try to fetch the games

txtSearch_TextChanged ( object sender, EventArgs e ) : void

Just refresh each time user types and it will filter games in RefreshLists function

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

Form constructor Sets placeholder text
public gameForm ( ) : System
return System

Property Details

mGamesSelected public_oe property

Stores all selected games
public List mGamesSelected
return List