コード例 #1
0
ファイル: ServerScopeNode.cs プロジェクト: alex765022/IBN
        /// <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);
        }
コード例 #2
0
ファイル: ServerScopeNode.cs プロジェクト: 0anion0/IBN
        /// <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);
        }