public ConfigurationSaveLoad(ConfigurationExport mConfigurationExport) { Database.Database db = new Database.Database(); this.fileName = @"" + db.settingsManager.get(db.connectionString, 1).EXE_Folder + @"\SettingExport.json"; this.configurationExport = mConfigurationExport; }
public void Load() { if (isSettings()) { StreamReader file = new System.IO.StreamReader(this.fileName); ConfigurationExport deserializedProduct = JsonConvert.DeserializeObject <ConfigurationExport>(file.ReadToEnd()); this.configurationExport = deserializedProduct; file.Close(); } }