Example #1
0
                private void AddChildren(FrozenExtractionConfigurationsNode frozenExtractionConfigurationsNode, DescendancyList descendancy)
                {
                    HashSet <object> children = new HashSet <object>();

                    //Add ExtractionConfigurations which are not released (frozen)
                    var configs = ExtractionConfigurations.Where(c => c.Project_ID == frozenExtractionConfigurationsNode.Project.ID).ToArray();

                    foreach (ExtractionConfiguration config in configs.Where(c => c.IsReleased))
                    {
                        AddChildren(config, descendancy.Add(config));
                        children.Add(config);
                    }

                    AddToDictionaries(children, descendancy);
                }
Example #2
0
                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);
                }
Example #3
0
                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);
                }