/// <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();
     }
 }
Example #2
0
 /// <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();
 }
Example #5
0
 public ServerProperties(ServerPropertiesFields fields)
 {
     Fields = fields;
 }
Example #6
0
 public ServerProperties()
 {
     Fields = new ServerPropertiesFields();
 }