Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 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();
     }
 }