コード例 #1
0
        private static CalendarBundle CreateCalendarFromXmlObject(calendarType ct)
        {
            CalendarBundle c = new CalendarBundle();

            // set type name first as it creates the actual inner instance
            c.TypeName     = ct.type;
            c.Description  = ct.description;
            c.CalendarName = ct.name;
            c.Replace      = ct.replace;

            if (ct.basecalendar != null)
            {
                c.CalendarBase = CreateCalendarFromXmlObject(ct.basecalendar);
            }
            return(c);
        }
コード例 #2
0
	    private static CalendarBundle CreateCalendarFromXmlObject(calendarType ct)
	    {
            CalendarBundle c = new CalendarBundle(); 
            
            // set type name first as it creates the actual inner instance
	        c.TypeName = ct.type;
            c.Description = ct.description;
            c.CalendarName = ct.name;
            c.Replace = ct.replace;

            if (ct.basecalendar != null)
            {
                c.CalendarBase = CreateCalendarFromXmlObject(ct.basecalendar);
            }
            return c;
	    }