private Settings() { Setari = new SettingsHolder(); }
/// <summary> /// Incarca fisierul cu setari si returneaza o valoare in functie de succes /// </summary> /// <returns></returns> public bool LoadSettings(string path) { try { _path = path; using (StreamReader sr = new StreamReader(path,false)) { XmlSerializer xmls = new XmlSerializer(typeof(SettingsHolder)); Setari = (SettingsHolder)xmls.Deserialize(sr); } } catch (Exception e) { ExceptionsHandler.Instance.AddException(e, Messages.ERROR_LOAD_SETTINGS); return false; } return true; }