C# Класс BaconGame.GameMainForm

Main form for the creation of trivia questions.
Наследование: System.Windows.Forms.Form, IGameMainForm
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GameMainForm ( ) : System.Windows.Forms

Constructor for the form.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
EnableTextFields ( ) : void

Enables or disables the edit controls based on whether or not a file is selected.

GameMainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

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, KeyEventArgs e ) : void

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.

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GameMainForm() публичный Метод

Constructor for the form.
public GameMainForm ( ) : System.Windows.Forms
Результат System.Windows.Forms