Interface IProjectTemplate
Interface for a IProject template.
Namespace: Loehnert.Lisrt.Scripting.Project.Interfaces
Assembly: Loehnert.Lisrt.Scripting.dll
Syntax
public interface IProjectTemplate
Properties
Description
Gets a translated description.
Declaration
string Description { get; }
Property Value
Type | Description |
---|---|
String |
FileExtension
Gets the file extension without dot.
Declaration
string FileExtension { get; }
Property Value
Type | Description |
---|---|
String |
Methods
CanLoadProjectFromPath(String)
Checks if a new project can be loaded from the path.
Declaration
bool CanLoadProjectFromPath(string filePath)
Parameters
Type | Name | Description |
---|---|---|
String | filePath | Path to the project file. |
Returns
Type | Description |
---|---|
Boolean | A value indicating whether a new project can be loaded from the path. |
GetNewProject(String)
Creates a new IProject.
Declaration
IProject GetNewProject(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Path to the new file without extension. |
Returns
Type | Description |
---|---|
IProject | A new IProject. |
LoadProject(String)
Loads the project from a file.
Declaration
IProject LoadProject(string filePath)
Parameters
Type | Name | Description |
---|---|---|
String | filePath | Path to the project file. |
Returns
Type | Description |
---|---|
IProject | IProject loaded from project file. |
ValidateNewFileName(String, String)
Gets the validation results of the new name of the item.
Declaration
IEnumerable<ValidationResult> ValidateNewFileName(string newName, string newPath)
Parameters
Type | Name | Description |
---|---|---|
String | newName | The name of the file, without extension. |
String | newPath | The path to the file, without the file name. |
Returns
Type | Description |
---|---|
IEnumerable<System.Windows.Controls.ValidationResult> | An enumeration of validation results. |