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