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); } }
public static RadTreeNode Build(Project proj, RadContextMenu radContextMenu1) { var pn = new RadTreeNode($"Project '{proj.Name}'", true); pn.Tag = proj; pn.ContextMenu = radContextMenu1; var props = new RadTreeNode("Properties", Resources.Property, true); props.Tag = new PropertiesView(); pn.Nodes.Add(props); pn.Expanded = proj.Expandet; foreach (var f in proj.Files) { var n = Build(f); pn.Nodes.Add(n); } return pn; }
public static void SetSrc(Project target, string src) { _projects.AddOrUpdate(target, src, null); }
public static string GetSrc(Project target) { return _projects[target]; }
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); } }