Beispiel #1
0
 //Чтение настроек из файла
 public void ReadXml()
 {
     if (File.Exists(XMLFileName))
     {
         XmlSerializer ser    = new XmlSerializer(typeof(SettingsFields));
         TextReader    reader = new StreamReader(XMLFileName);
         Fields = ser.Deserialize(reader) as SettingsFields;
         reader.Close();
     }
 }
Beispiel #2
0
 public SettingsCOM(string FileName)
 {
     XMLFileName = FileName;
     Fields      = new SettingsFields();
 }