Пример #1
0
        internal void LoadValuesFromConfigurationXml()
        {
            XmlNode configSection             = this.GetConfigSection("Hishop/Core");
            XmlAttributeCollection attributes = configSection.Attributes;

            this.GetAttributes(attributes);
            foreach (XmlNode xmlNode in configSection.ChildNodes)
            {
                if (xmlNode.Name == "Languages")
                {
                    this.GetLanguages(xmlNode);
                }
                if (xmlNode.Name == "appLocation")
                {
                    this.GetAppLocation(xmlNode);
                }
                if (xmlNode.Name == "IntegratedApplications")
                {
                    this.GetIntegratedApplications(xmlNode);
                }
            }
            if (this.appLocation_0 == null)
            {
                this.appLocation_0 = AppLocation.Default();
            }
            if (this.roleConfiguration == null)
            {
                this.roleConfiguration = new RolesConfiguration();
            }
        }
Пример #2
0
 static RoleHelper()
 {
     rolesConfig = HiConfiguration.GetConfig().RolesConfiguration;
     defaultRoles = rolesConfig.RoleList();
 }