Method | Description | |
---|---|---|
GameMainForm ( ) : System.Windows.Forms |
Constructor for the form.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
Method | Description | |
---|---|---|
EnableTextFields ( ) : void |
Enables or disables the edit controls based on whether or not a file is selected.
|
|
GameMainForm_FormClosing ( object sender, |
Occurs when the form is closing. Asks for sync confirmation and syncs with the server if it gets it.
|
|
GameMainForm_Shown ( object sender, System e ) : void |
Called when the form is first shown. Initialises a sync dialog.
|
|
InitializeComponent ( ) : void | ||
comboBoxCorrectAnswer_SelectedIndexChanged ( object sender, System e ) : void |
Occurs when the combo box's index gets changes. Updates the answer in the question view.
|
|
fileView_ItemSelectionChanged ( object sender, System.Windows.Forms.ListViewItemSelectionChangedEventArgs e ) : void |
Occurs for each change of selection when a user selects a new file. Saves the deselected question file. Populates the question view with questions from the newly selected question file. Updates UI as appropriate.
|
|
questionView_ItemSelectionChanged ( object sender, System.Windows.Forms.ListViewItemSelectionChangedEventArgs e ) : void |
Occurs for each change of selection when a user selects a new question. Disables the edit controls for a deselect, re-enables them for a select. Updates UI as necessary.
|
|
splitter_SplitterMoved ( object sender, System.Windows.Forms.SplitterEventArgs e ) : void |
Occurs when the main splitter gets moved. Adjusts file view column size.
|
|
textBoxQuestion_Leave ( object sender, System e ) : void |
Occurs when any of the textboxes lose focus. Saves the current question.
|
|
textBox_KeyDown ( object sender, |
Occurs when the user types in any textbox. Suppresses parsing enter key. Also saves question on pressing enter.
|
|
toolStripAdd_Click ( object sender, System e ) : void |
Called when the user clicks the add question button. Adds a new question to the currently selected file.
|
|
toolStripDelete_Click ( object sender, System e ) : void |
Called when the user clicks the delete question button. Deletes a question from the UI and current question file.
|
|
toolStripExit_Click ( object sender, System e ) : void |
Called when user clicks the exit button in the file menu. Closes the form.
|
|
toolStripSync_Click ( object sender, System e ) : void |
Called when the user clicks the server sync button. Uploads necessary files to the remote server.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
return | void |
public GameMainForm ( ) : System.Windows.Forms | ||
return | System.Windows.Forms |