Example #1
0
        internal static void SaveToXml(ServerTreeRoot root)
        {
			using (Stream fStream = new FileStream(GetServersXmlFileName(), FileMode.Create, FileAccess.Write, FileShare.Read))
			{
			    _serializer.Serialize(fStream, root);
                fStream.Close();
            }
        }
Example #2
0
 internal static void SaveToXml(ServerTreeRoot root)
 {
     using (Stream fStream = new FileStream(GetServersXmlFileName(), FileMode.Create, FileAccess.Write, FileShare.Read))
     {
         _serializer.Serialize(fStream, root);
         fStream.Close();
     }
 }
Example #3
0
        internal ServerTree(ServerTreeRoot legacyRoot)
        {
            LocalServer = new ServerTreeLocalServer();
            
            if (legacyRoot == null)
            {
                InitializeRootGroup();
            }
            else
            {
                RootServerGroup = legacyRoot.ServerGroupNode.ToServerTreeGroup();
            }

            InitializePaths();
            CurrentNode = LocalServer;
        }