C# Class BaconBuilder.Controller.MainViewController

Afficher le fichier Open project: Revelations/BaconApp Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
FindItem ( string text ) : int

Returns the index of the listview item

Method Details

ContentsHaveChanged() public méthode

public ContentsHaveChanged ( ) : bool
Résultat bool

CreateNewFile() public méthode

Creates a new blank file.
public CreateNewFile ( ) : void
Résultat void

InitialiseListView() public méthode

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

MainViewController() public méthode

public MainViewController ( BaconModel model, IMainView view ) : System
model BaconBuilder.Model.BaconModel
view IMainView
Résultat System

RefreshDirectory() public méthode

Reloads the directory in the view.
public RefreshDirectory ( ) : void
Résultat void

RemoveCurrentFile() public méthode

Removes the currently loaded file from the file system.
public RemoveCurrentFile ( ) : void
Résultat void

RenameFile() public méthode

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

SelectFile() public méthode

public SelectFile ( string value ) : void
value string
Résultat void

ValidateTitle() public méthode

public ValidateTitle ( ) : void
Résultat void