public void Load() { try { using (FileStream fs = File.Open(Statics.SettingsPath, FileMode.Open)) { DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(MeldiiSettings)); Self = (MeldiiSettings)serializer.ReadObject(fs); Debug.WriteLine("AddonLibaryPathAddonLibaryPath: " + Self.AddonLibaryPath); } } catch (Exception) { Debug.WriteLine("Error loading settings.json"); } }