Ejemplo n.º 1
0
        public static void ExportBookMarkTree(string Filename, BookMarkTree Tree)
        {
            if (!Directory.Exists(Filename))
            {
                Directory.CreateDirectory(Path.GetDirectoryName(Filename));
            }

            Stream          stream     = File.Open(Filename, FileMode.Create, FileAccess.Write, FileShare.ReadWrite);
            BinaryFormatter bFormatter = new BinaryFormatter();

            bFormatter.Serialize(stream, Tree);
            stream.Close();
        }
Ejemplo n.º 2
0
 public void AddTree(BookMarkTree tree)
 {
     tree.Parent = this;
     this.ChildTrees.Add(tree);
 }