//Чтение настроек из файла 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(); } }
public SettingsCOM(string FileName) { XMLFileName = FileName; Fields = new SettingsFields(); }