public static void DeleteProject(ITreeItem project)
        {
            foreach (var diagram in project.GetItems().ToList())
            {
                project.Remove(diagram);
            }

            (project.GetParent() as ITreeItem).Remove(project);
        }
        public static void DeleteProject(ITreeItem solution, ITreeItem project)
        {
            foreach (var diagram in project.GetItems().ToList())
            {
                project.Remove(diagram);
            }

            solution.Remove(project);
        }
Exemplo n.º 3
0
        public static void DeleteProject(ITreeItem project)
        {
            foreach (var diagram in project.GetItems().ToList())
                project.Remove(diagram);

            (project.GetParent() as ITreeItem).Remove(project);
        }
Exemplo n.º 4
0
        public static void DeleteProject(ITreeItem solution, ITreeItem project)
        {
            foreach (var diagram in project.GetItems().ToList())
                project.Remove(diagram);

            solution.Remove(project);
        }