C# Class Mckineap.Models.Context.Workspace

Inheritance: FileObject
Show file Open project: loic-lavergne/mckineap Class Usage Examples

Public Methods

Method Description
AddProject ( Project project ) : void
AddProject ( string fullPath ) : void
GetLastProject ( ) : Project

[NOT IMPLEMENTED] Returns the last Project that was open.

HasProjects ( ) : System.Boolean

Checks whether the Workspace has Projects.

IsWorkspaceValid ( ) : System.Boolean

Checks whether the Workspace is valid, ie. the workspace and projects folders and the configuration file exist.

LoadProjects ( System.Boolean lazy = true ) : void
LoadProjectsLazy ( ) : void
Workspace ( String path ) : Mckineap.Models.Context.Projects

Private Methods

Method Description
CreateDefaultWorkspace ( ) : void

Creates a Workspace with a default configuration file and a folder for the projects.
On failure, the Application is shut down.

LastProjectExists ( ) : System.Boolean

Checks whether the configuration file indicates the last project opened.

Method Details

AddProject() public method

public AddProject ( Project project ) : void
project Mckineap.Models.Context.Projects.Project
return void

AddProject() public method

public AddProject ( string fullPath ) : void
fullPath string
return void

GetLastProject() public method

[NOT IMPLEMENTED] Returns the last Project that was open.
public GetLastProject ( ) : Project
return Mckineap.Models.Context.Projects.Project

HasProjects() public method

Checks whether the Workspace has Projects.
public HasProjects ( ) : System.Boolean
return System.Boolean

IsWorkspaceValid() public method

Checks whether the Workspace is valid, ie. the workspace and projects folders and the configuration file exist.
public IsWorkspaceValid ( ) : System.Boolean
return System.Boolean

LoadProjects() public method

public LoadProjects ( System.Boolean lazy = true ) : void
lazy System.Boolean
return void

LoadProjectsLazy() public method

public LoadProjectsLazy ( ) : void
return void

Workspace() public method

public Workspace ( String path ) : Mckineap.Models.Context.Projects
path String
return Mckineap.Models.Context.Projects