예제 #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
파일: RoleHelper.cs 프로젝트: davinx/himedi
 static RoleHelper()
 {
     rolesConfig = HiConfiguration.GetConfig().RolesConfiguration;
     defaultRoles = rolesConfig.RoleList();
 }