Method | Description | |
---|---|---|
AddQuestion ( ) : void |
Creates a new blank question and appends it to the question view.
|
|
ClearTextFields ( ) : void |
Clears each of the text and combo boxes in the view.
|
|
ConfirmDelete ( ) : bool |
Brings up a confirmation of question deletion dialog.
|
|
CreateNeededQuestionFiles ( ) : void |
Creates missing question files from the html files present on the server.
|
|
DepopulateQuestionView ( ) : void |
Clears the question view.
|
|
DownloadSync ( ) : void |
Opens a sync dialog to download necessary files.
|
|
GamePresenter ( IGameMainForm view ) : Common.System |
Constructor accepting a single argument.
|
|
LoadTextFields ( ) : void |
Loads the contents of the currently selected question into the text and combo boxes.
|
|
PopulateFileView ( ) : void |
Populates the file view with any question files stored in the local directory.
|
|
PopulateQuestionView ( string questionFile ) : void |
Populates the question view with questions, based on the selected question file.
|
|
RemoveQuestion ( ) : void |
Deletes a selected question and removes it from the question box.
|
|
SaveOpen ( ) : void |
Saves any open questions and question files.
|
|
SaveQuestion ( int index ) : void |
Saves the question at a given index of the question view.
|
|
SaveQuestionFile ( string fileName ) : void |
Saves the set of currently selected questions to a file.
|
|
ShowError ( string error ) : void |
Shows an error dialog to the user.
|
|
UpdateAnswer ( ) : void |
Updates the modified answer to a question in the question view.
|
|
UploadSync ( ) : void |
Opens a sync dialog to upload necessary files.
|
|
UploadSync ( |
Opens a sync dialog to upload necessary files on form exit. First displays a confirmation to the user.
|
Method | Description | |
---|---|---|
AddQuestionToView ( |
Adds a single question to the question view.
|
|
InitComboBox ( |
Populates the combo box with a list of possible answers to select from.
|
public GamePresenter ( IGameMainForm view ) : Common.System | ||
view | IGameMainForm | The form that this presenter controls the layout for. |
return | Common.System |
public PopulateQuestionView ( string questionFile ) : void | ||
questionFile | string | The currently open question file. |
return | void |
public SaveQuestion ( int index ) : void | ||
index | int | Listview item index of the question to save. |
return | void |
public SaveQuestionFile ( string fileName ) : void | ||
fileName | string | Name of the file. |
return | void |
public ShowError ( string error ) : void | ||
error | string | String to display. |
return | void |
public UploadSync ( |
||
e | Form closing event args. | |
return | void |