public override void Build(ThemeListNode node)
 {
     if (!IsThemeList)
         return;
     node.Load(_xml);
 }
 public override void Save(ThemeListNode node)
 {
     _xml = node.ToXElement();
     _xml.Save(_path);
 }
 public virtual void Save(ThemeListNode node) { }
 public virtual void Build(ThemeListNode node) { }
        public override void Build(ThemeListNode node)
        {
            if (node == null)
                throw new ArgumentNullException("TMNode is null");

            if (!_loaded)
                Load();
            if (Version[0] == '1')
            {
                // version 1 had no tbl_list, and hence no databaseInfo
                node.Name = _path;
            }
            if (Version[0] == '2')
            {
                node.Name = _databaseInfo.Name;
                if (!string.IsNullOrEmpty(_databaseInfo.Link))
                    node.Metadata = new Metadata(_databaseInfo.Link, MetadataType.Url, MetadataFormat.Html);
                node.Description = _databaseInfo.Description;
                if (_databaseInfo.HasAuthor)
                {
                    node.Author = _databaseInfo.Author;
                }
            }
            FillCategory(node, -1);
        }
 public override void Save(ThemeListNode node)
 {
     //FIXME - Implement Save;
     // check version and save appropriate to that version
     throw new NotImplementedException();
 }