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