示例#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();
            }
        }
示例#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();
     }
 }
示例#3
0
文件: ServerTree.cs 项目: nhannd/Xian
        internal ServerTree(ServerTreeRoot legacyRoot)
        {
            LocalServer = new ServerTreeLocalServer();
            
            if (legacyRoot == null)
            {
                InitializeRootGroup();
            }
            else
            {
                RootServerGroup = legacyRoot.ServerGroupNode.ToServerTreeGroup();
            }

            InitializePaths();
            CurrentNode = LocalServer;
        }