Ejemplo n.º 1
0
        protected void SavePartialTree(TreePartialContainer tree, TreePartialMeta meta)
        {
            string fileName = Path.Combine(RzrConfiguration.PartialsDirectory, meta.File);

            using (StreamWriter target = new StreamWriter(fileName))
            {
                XmlSerializer serialiser = new XmlSerializer(typeof(TreePartialContainer));
                serialiser.Serialize(target, tree);
            }
        }
Ejemplo n.º 2
0
 public void SavePartial(TreePartialContainer container, TreePartialMeta meta)
 {
     Service.SavePartial(container, meta);
 }
Ejemplo n.º 3
0
        public void SavePartial(TreePartialContainer tree, TreePartialMeta meta)
        {
            _partials.Partials.RemoveAll(x => x.Name == meta.Name);
            _partials.Partials.Add(meta);

            SavePartials();
            SavePartialTree(tree, meta);
        }