C# 클래스 Settings.gameForm

상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: Ezzpify/HourBoostr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
mGamesSelected List

공개 메소드들

메소드 설명
gameForm ( ) : System

Form constructor Sets placeholder text

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
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

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

gameForm() 공개 메소드

Form constructor Sets placeholder text
public gameForm ( ) : System
리턴 System

프로퍼티 상세

mGamesSelected 공개적으로 프로퍼티

Stores all selected games
public List mGamesSelected
리턴 List