Finished create project dialog

This commit is contained in:
2014-08-16 13:55:07 +03:00
parent c933b96347
commit 1e6ba1375f
5 changed files with 49 additions and 80 deletions

View File

@@ -102,18 +102,12 @@ namespace RainmeterStudio.UI.Controller
/// <summary>
/// Displays the 'create project' dialog and creates a new project
/// </summary>
public void CreateProject(string name = null, string path = null)
public void CreateProject()
{
// Create dialog
var dialog = new CreateProjectDialog(this);
dialog.Owner = OwnerWindow;
if (name != null)
dialog.Name = name;
if (path != null)
dialog.SelectedPath = path;
// Display
bool? res = dialog.ShowDialog();
if (!res.HasValue || !res.Value)