C# Class BaconBuilder.Controller.MainViewController

Datei anzeigen Open project: Revelations/BaconApp Class Usage Examples

Public Methods

Method Description
ContentsHaveChanged ( ) : bool
CreateNewFile ( ) : void

Creates a new blank file.

InitialiseListView ( ) : void

Initialises and populates a listview with the html files in a directory.

MainViewController ( BaconModel model, IMainView view ) : System
RefreshDirectory ( ) : void

Reloads the directory in the view.

RemoveCurrentFile ( ) : void

Removes the currently loaded file from the file system.

RenameFile ( string oldName, string newName ) : void

Rename the old file name to the new file name.

SelectFile ( string value ) : void
ValidateTitle ( ) : void

Private Methods

Method Description
FindItem ( string text ) : int

Returns the index of the listview item

Method Details

ContentsHaveChanged() public method

public ContentsHaveChanged ( ) : bool
return bool

CreateNewFile() public method

Creates a new blank file.
public CreateNewFile ( ) : void
return void

InitialiseListView() public method

Initialises and populates a listview with the html files in a directory.
public InitialiseListView ( ) : void
return void

MainViewController() public method

public MainViewController ( BaconModel model, IMainView view ) : System
model BaconBuilder.Model.BaconModel
view IMainView
return System

RefreshDirectory() public method

Reloads the directory in the view.
public RefreshDirectory ( ) : void
return void

RemoveCurrentFile() public method

Removes the currently loaded file from the file system.
public RemoveCurrentFile ( ) : void
return void

RenameFile() public method

Rename the old file name to the new file name.
public RenameFile ( string oldName, string newName ) : void
oldName string
newName string
return void

SelectFile() public method

public SelectFile ( string value ) : void
value string
return void

ValidateTitle() public method

public ValidateTitle ( ) : void
return void