예제 #1
0
        public static tour Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            tour _tour = new tour();

            _tour.m_rocrailClient = rocrailClient;
            _tour.m_id            = (string)xml.Attribute("id");
            _tour.m_recycle       = (bool?)xml.Attribute("recycle");
            _tour.m_schedules     = (string)xml.Attribute("schedules");
            return(_tour);
        }
예제 #2
0
 public void Update(tour element)
 {
     if (element.m_id != null)
     {
         this.id = element.id;
     }
     if (element.m_recycle.HasValue == true)
     {
         this.recycle = element.recycle;
     }
     if (element.m_schedules != null)
     {
         this.schedules = element.schedules;
     }
 }