public void RemoveSubFolder(Folder folder) { if (SubFolders == null) { throw new Exception(); } SubFolders.Remove(folder); }
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); } } }
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"); }
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"); } }