Esempio n. 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(  );
        }
Esempio n. 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(  ) ;
        }