Esempio n. 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();
     }
 }
Esempio n. 2
0
 public SettingsCOM(string FileName)
 {
     XMLFileName = FileName;
     Fields      = new SettingsFields();
 }