C# 클래스 BaconGame.GamePresenter

Controls presentation and layout of an IGameMainForm
파일 보기 프로젝트 열기: Revelations/BaconApp 1 사용 예제들

공개 메소드들

메소드 설명
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 ( FormClosingEventArgs e ) : void

Opens a sync dialog to upload necessary files on form exit. First displays a confirmation to the user.

비공개 메소드들

메소드 설명
AddQuestionToView ( Question q ) : void

Adds a single question to the question view.

InitComboBox ( Question q ) : void

Populates the combo box with a list of possible answers to select from.

메소드 상세

AddQuestion() 공개 메소드

Creates a new blank question and appends it to the question view.
public AddQuestion ( ) : void
리턴 void

ClearTextFields() 공개 메소드

Clears each of the text and combo boxes in the view.
public ClearTextFields ( ) : void
리턴 void

ConfirmDelete() 공개 메소드

Brings up a confirmation of question deletion dialog.
public ConfirmDelete ( ) : bool
리턴 bool

CreateNeededQuestionFiles() 공개 메소드

Creates missing question files from the html files present on the server.
public CreateNeededQuestionFiles ( ) : void
리턴 void

DepopulateQuestionView() 공개 메소드

Clears the question view.
public DepopulateQuestionView ( ) : void
리턴 void

DownloadSync() 공개 메소드

Opens a sync dialog to download necessary files.
public DownloadSync ( ) : void
리턴 void

GamePresenter() 공개 메소드

Constructor accepting a single argument.
public GamePresenter ( IGameMainForm view ) : Common.System
view IGameMainForm The form that this presenter controls the layout for.
리턴 Common.System

LoadTextFields() 공개 메소드

Loads the contents of the currently selected question into the text and combo boxes.
public LoadTextFields ( ) : void
리턴 void

PopulateFileView() 공개 메소드

Populates the file view with any question files stored in the local directory.
public PopulateFileView ( ) : void
리턴 void

PopulateQuestionView() 공개 메소드

Populates the question view with questions, based on the selected question file.
public PopulateQuestionView ( string questionFile ) : void
questionFile string The currently open question file.
리턴 void

RemoveQuestion() 공개 메소드

Deletes a selected question and removes it from the question box.
public RemoveQuestion ( ) : void
리턴 void

SaveOpen() 공개 메소드

Saves any open questions and question files.
public SaveOpen ( ) : void
리턴 void

SaveQuestion() 공개 메소드

Saves the question at a given index of the question view.
public SaveQuestion ( int index ) : void
index int Listview item index of the question to save.
리턴 void

SaveQuestionFile() 공개 메소드

Saves the set of currently selected questions to a file.
public SaveQuestionFile ( string fileName ) : void
fileName string Name of the file.
리턴 void

ShowError() 공개 메소드

Shows an error dialog to the user.
public ShowError ( string error ) : void
error string String to display.
리턴 void

UpdateAnswer() 공개 메소드

Updates the modified answer to a question in the question view.
public UpdateAnswer ( ) : void
리턴 void

UploadSync() 공개 메소드

Opens a sync dialog to upload necessary files.
public UploadSync ( ) : void
리턴 void

UploadSync() 공개 메소드

Opens a sync dialog to upload necessary files on form exit. First displays a confirmation to the user.
public UploadSync ( FormClosingEventArgs e ) : void
e System.Windows.Forms.FormClosingEventArgs Form closing event args.
리턴 void