Exemplo n.º 1
0
        public void RemoveSubFolder(Folder folder)
        {
            if (SubFolders == null)
            {
                throw new Exception();
            }

            SubFolders.Remove(folder);
        }
Exemplo n.º 2
0
        private void CheckForestRuns()
        {
            Dictionary <string, string> temp = SubFolders;

            foreach (string name in temp.Keys)
            {
                if (GlobalHelper.PathContainsFile(SubFolders[name], XML_NAME))
                {
                    SyncRuns.Add(new SyncRun(ForestName, ForestName, name, temp[name]));

                    SubFolders.Remove(name);
                }
            }
        }
Exemplo n.º 3
0
        public void RemoveElement(ProjectElementBase element)
        {
            if (element is Project)
            {
                Projects.Remove(element as Project);
                return;
            }

            if (element is SolutionFolder)
            {
                SubFolders.Remove(element as SolutionFolder);
                return;
            }
            throw new Exception("Not correct type of item");
        }
Exemplo n.º 4
0
        public void RemoveElementRange(IList <ProjectElementBase> elements)
        {
            foreach (ProjectElementBase e in elements)
            {
                if (e is Project)
                {
                    Projects.Remove(e as Project);
                    continue;
                }

                if (e is SolutionFolder)
                {
                    SubFolders.Remove(e as SolutionFolder);
                    continue;
                }
                throw new Exception("Not correct type of item");
            }
        }