/// <summary> /// Прочитать файл настроек /// </summary> public void ReadXML() { if (File.Exists(Fields.XMLFileName)) { XmlSerializer ser = new XmlSerializer(typeof(ServerPropertiesFields)); TextReader rd = new StreamReader(Fields.XMLFileName); Fields = (ServerPropertiesFields)ser.Deserialize(rd); rd.Close(); } else { WriteXml(); } }
public ServerProperties(ServerPropertiesFields fields) { Fields = fields; }
public ServerProperties() { Fields = new ServerPropertiesFields(); }