C# Класс BaconBuilder.Controller.MainViewController

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

Метод Описание
FindItem ( string text ) : int

Returns the index of the listview item

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

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

public ContentsHaveChanged ( ) : bool
Результат bool

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

Creates a new blank file.
public CreateNewFile ( ) : void
Результат void

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

Initialises and populates a listview with the html files in a directory.
public InitialiseListView ( ) : void
Результат void

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

public MainViewController ( BaconModel model, IMainView view ) : System
model BaconBuilder.Model.BaconModel
view IMainView
Результат System

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

Reloads the directory in the view.
public RefreshDirectory ( ) : void
Результат void

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

Removes the currently loaded file from the file system.
public RemoveCurrentFile ( ) : void
Результат void

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

Rename the old file name to the new file name.
public RenameFile ( string oldName, string newName ) : void
oldName string
newName string
Результат void

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

public SelectFile ( string value ) : void
value string
Результат void

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

public ValidateTitle ( ) : void
Результат void