Esempio n. 1
0
        public DataCarriers.Settings GetSettings()
        {
            var filePath = _rootFolder.FullName + "\\settings.json";
            var fi       = new FileInfo(filePath);

            if (fi.Exists)
            {
                return(LoadObjectFromFile <DataCarriers.Settings>(fi));
            }

            var settings = new DataCarriers.Settings();

            SaveSettings(settings);
            return(settings);
        }
Esempio n. 2
0
        public void SaveSettings(DataCarriers.Settings settings)
        {
            var filePath = _rootFolder.FullName + "\\settings.json";

            Save(settings, filePath);
        }