Пример #1
0
        public bool Save()
        {
            //Trials dont need sync folders saved
            if (!IsTrial)
            {
                //Get the logs yo
                JsonStorageProvider.StoreObject <List <ItemViewModel> >(_syncLogKey, SyncFolders);
            }

            try
            {
                var dir = new DirectoryInfo(_configDirPath);
                if (!dir.Exists)
                {
                    dir.Create();
                }

                this.toXml().Save(_settingsPath);
                return(true);
            }
            catch
            {
                return(false);
            }
        }