Fixes for project manager

This commit is contained in:
2014-08-16 14:35:54 +03:00
parent bedc107bb1
commit fb2929e02a
9 changed files with 38 additions and 40 deletions

View File

@ -51,14 +51,14 @@ namespace RainmeterStudio.Business
/// </summary>
/// <param name="name">Name of project</param>
/// <param name="path">Path of project file</param>
public void CreateProject(string name, string path)
public void CreateProject(string name, string path, IProjectTemplate template)
{
// If there is an opened project, close it
if (ActiveProject != null)
Close();
// Create project object
ActiveProject = new Project();
ActiveProject = template.CreateProject();
ActiveProject.Name = name;
ActiveProject.Path = path;