Пример #1
0
        public Layer(XElement xml)
        {
            _properties = xml.Element(@"LayerProperties").DeserializedAs <LayerProperties>(  );

            _items = (from x in xml.CertainElement(@"Editors").Elements(@"Editor")
                      select new LayerItem(x)).ToList(  );
        }
Пример #2
0
        public Layer( XElement xml )
        {
            _properties = xml.Element( @"LayerProperties" ).DeserializedAs<LayerProperties>(  ) ;

            _items = (from x in xml.CertainElement( @"Editors" ).Elements(@"Editor" )
                         select new LayerItem( x )).ToList(  ) ;
        }