private void radMenuItem12_Click(object sender, EventArgs e) { var np = new NewProjectDialog(); if (np.ShowDialog() == System.Windows.Forms.DialogResult.OK) { var f = new Project(); f.Name = np.Filename; f.Type = np.Type; Workspace.Solution.Projects.Add(f); radTreeView1.Nodes.Clear(); radTreeView1.Nodes.Add(SolutionExplorer.Build(Workspace.Solution)); Workspace.Solution.Save(Workspace.SolutionPath); } }
private void radMenuItem12_Click(object sender, EventArgs e) { var np = new NewProjectDialog(); if (np.ShowDialog() == System.Windows.Forms.DialogResult.OK) { var f = new Project(); f.Name = np.Filename; f.Type = np.Type; Workspace.Solution.Projects.Add(f); explorerTreeView.Nodes.Clear(); explorerTreeView.Nodes.Add(SolutionExplorer.Build(Workspace.Solution, radContextMenu1)); np.Plugin.Events.Fire("OnCreateProject", f); Workspace.Solution.Save(Workspace.SolutionPath); } }
private void newProjectMenuItem_Click(object sender, EventArgs e) { var np = new NewProjectDialog(); if (np.ShowDialog() == System.Windows.Forms.DialogResult.OK) { var f = new Project(); f.Name = np.Filename; f.Type = np.Type; Workspace.Solution.Projects.Add(f); explorerTreeView.Nodes.Clear(); explorerTreeView.Nodes.Add(SolutionExplorer.Build(Workspace.Solution, solutionContextMenu, projectContextMenu, fileContextMenu)); var path = new FileInfo(Workspace.SolutionPath).Directory.FullName; Directory.CreateDirectory(path + "\\" + f.Name); Directory.CreateDirectory(path + "\\" + f.Name + "\\Properties"); np.Plugin.Events.Fire("OnCreateProject", f); Workspace.Solution.Save(Workspace.SolutionPath); } }