private void AddChildren(ExtractionConfigurationsNode extractionConfigurationsNode, DescendancyList descendancy) { HashSet <object> children = new HashSet <object>(); //Create a frozen extraction configurations folder as a subfolder of each ExtractionConfigurationsNode var frozenConfigurationsNode = new FrozenExtractionConfigurationsNode(extractionConfigurationsNode.Project); //Make the frozen folder appear under the extractionConfigurationsNode children.Add(frozenConfigurationsNode); //Add children to the frozen folder AddChildren(frozenConfigurationsNode, descendancy.Add(frozenConfigurationsNode)); //Add ExtractionConfigurations which are not released (frozen) if (ExtractionConfigurationsByProject.TryGetValue(extractionConfigurationsNode.Project.ID, out List <ExtractionConfiguration> result)) { foreach (ExtractionConfiguration config in result.Where(c => !c.IsReleased)) { AddChildren(config, descendancy.Add(config)); children.Add(config); } } AddToDictionaries(children, descendancy); }
private void AddChildren(Project project, DescendancyList descendancy) { HashSet <object> children = new HashSet <object>(); var projectCohortNode = new ProjectCohortsNode(project); children.Add(projectCohortNode); AddChildren(projectCohortNode, descendancy.Add(projectCohortNode)); var projectCataloguesNode = new ProjectCataloguesNode(project); children.Add(projectCataloguesNode); AddChildren(projectCataloguesNode, descendancy.Add(projectCataloguesNode).SetNewBestRoute()); var extractionConfigurationsNode = new ExtractionConfigurationsNode(project); children.Add(extractionConfigurationsNode); AddChildren(extractionConfigurationsNode, descendancy.Add(extractionConfigurationsNode)); var folder = new ExtractionDirectoryNode(project); children.Add(folder); AddToDictionaries(children, descendancy); }
private string DescribeProblem(ExtractionConfigurationsNode extractionConfigurationsNode) { if (_exportChildProvider.Projects.Contains(extractionConfigurationsNode.Project)) { if (!_exportChildProvider.GetConfigurations(extractionConfigurationsNode.Project).Any()) { return("Project has no ExtractionConfigurations"); } } return(null); }
private void AddChildren(ExtractionConfigurationsNode extractionConfigurationsNode, DescendancyList descendancy) { HashSet <object> children = new HashSet <object>(); var frozenConfigurationsNode = new FrozenExtractionConfigurationsNode(extractionConfigurationsNode.Project); children.Add(frozenConfigurationsNode); var configs = ExtractionConfigurations.Where(c => c.Project_ID == extractionConfigurationsNode.Project.ID).ToArray(); foreach (ExtractionConfiguration config in configs) { AddChildren(config, descendancy.Add(config)); children.Add(config); } AddToDictionaries(children, descendancy); }
private void AddChildren(ExtractionConfigurationsNode extractionConfigurationsNode, DescendancyList descendancy) { HashSet <object> children = new HashSet <object>(); //Create a frozen extraction configurations folder as a subfolder of each ExtractionConfigurationsNode var frozenConfigurationsNode = new FrozenExtractionConfigurationsNode(extractionConfigurationsNode.Project); //Make the frozen folder appear under the extractionConfigurationsNode children.Add(frozenConfigurationsNode); //Add children to the frozen folder AddChildren(frozenConfigurationsNode, descendancy.Add(frozenConfigurationsNode)); //Add ExtractionConfigurations which are not released (frozen) var configs = ExtractionConfigurations.Where(c => c.Project_ID == extractionConfigurationsNode.Project.ID).ToArray(); foreach (ExtractionConfiguration config in configs.Where(c => !c.IsReleased)) { AddChildren(config, descendancy.Add(config)); children.Add(config); } AddToDictionaries(children, descendancy); }
public ExtractionConfigurationsNodeMenu(RDMPContextMenuStripArgs args, ExtractionConfigurationsNode extractionConfigurationsNode) : base(args, extractionConfigurationsNode) { Add(new ExecuteCommandCreateNewExtractionConfigurationForProject(_activator, extractionConfigurationsNode.Project)); }