Пример #1
0
		public void Create(ConfigDayInfo configDayInfo)
		{
            if (configDayInfo != null)
            {
                this.dayTimeLuminances = configDayInfo.dayTimeLuminances;
                this.dayDuration = configDayInfo.dayDuration;
            }
		}
Пример #2
0
        private ConfigDayInfo ParseDayInfo(string name, XmlElement dayInfoXML)
        {
            ConfigDayInfo dayInfo = new ConfigDayInfo();

            dayInfo.name = name;

            dayInfo.dayDuration       = GetElementIntValue(dayInfoXML, "Duration");
            dayInfo.dayTimeLuminances = ParseLuminances(dayInfoXML["Luminances"]);

            return(dayInfo);
        }
Пример #3
0
        private ConfigDayInfo ParseDayInfo(string name, XmlElement dayInfoXML)
        {
            ConfigDayInfo dayInfo = new ConfigDayInfo();
            dayInfo.name = name;

            dayInfo.dayDuration = GetElementIntValue(dayInfoXML, "Duration");
            dayInfo.dayTimeLuminances = ParseLuminances(dayInfoXML["Luminances"]);

            return dayInfo;
        }