Пример #1
0
        public static connection Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            connection _connection = new connection();

            _connection.m_rocrailClient = rocrailClient;
            _connection.m_id            = (string)xml.Attribute("id");
            _connection.m_modid         = (string)xml.Attribute("modid");
            _connection.m_side          = (string)xml.Attribute("side");
            return(_connection);
        }
Пример #2
0
 public void Update(connection element)
 {
     if (element.m_id != null)
     {
         this.id = element.id;
     }
     if (element.m_modid != null)
     {
         this.modid = element.modid;
     }
     if (element.m_side != null)
     {
         this.side = element.side;
     }
 }