Ejemplo n.º 1
0
        /// <summary>
        /// Loads the server child scope nodes.
        /// </summary>
        /// <param name="serverConfigurator">The server configurator.</param>
        /// <param name="serverScopeNode">The server scope node.</param>
        private void LoadServerChildScopeNodes(ScopeNode serverScopeNode)
        {
            // Companies
            CompaniesScopeNode companiesScopeNode = new CompaniesScopeNode(this.Configurator);

            serverScopeNode.Children.Add(companiesScopeNode);

            // License
            LicenseScopeNode licenseScopeNode = new LicenseScopeNode(this.Configurator);

            serverScopeNode.Children.Add(licenseScopeNode);

            // Updates
            UpgradesScopeNode upgradesScopeNode = new UpgradesScopeNode(this.Configurator);

            serverScopeNode.Children.Add(upgradesScopeNode);


            foreach (int version in GetUpgradeElements(this.Configurator))
            {
                UpgradeScopeNode upgradeScopeNode = new UpgradeScopeNode(this.Configurator, version);
                upgradesScopeNode.Children.Add(upgradeScopeNode);
            }

            // Properties
            ServerPropertiesScopeNode serverPropertiesScopeNode = new ServerPropertiesScopeNode(this.Configurator);

            serverScopeNode.Children.Add(serverPropertiesScopeNode);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Loads the server child scope nodes.
        /// </summary>
        /// <param name="serverConfigurator">The server configurator.</param>
        /// <param name="serverScopeNode">The server scope node.</param>
        private void LoadServerChildScopeNodes(ScopeNode serverScopeNode)
        {
            // Companies
            CompaniesScopeNode companiesScopeNode = new CompaniesScopeNode(this.Configurator);
            serverScopeNode.Children.Add(companiesScopeNode);

            // License
            LicenseScopeNode licenseScopeNode = new LicenseScopeNode(this.Configurator);
            serverScopeNode.Children.Add(licenseScopeNode);

            // Updates
            UpgradesScopeNode upgradesScopeNode = new UpgradesScopeNode(this.Configurator);
            serverScopeNode.Children.Add(upgradesScopeNode);

            foreach (int version in GetUpgradeElements(this.Configurator))
            {
                UpgradeScopeNode upgradeScopeNode = new UpgradeScopeNode(this.Configurator, version);
                upgradesScopeNode.Children.Add(upgradeScopeNode);
            }

            // Properties
            ServerPropertiesScopeNode serverPropertiesScopeNode = new ServerPropertiesScopeNode(this.Configurator);
            serverScopeNode.Children.Add(serverPropertiesScopeNode);
        }