Ejemplo n.º 1
0
        public ApplicationSettings GetAppSettings(ApplicationSettings settings)
        {
            var dataList            = SqliteDataBase.GetData(settings.Id);
            var data                = dataList.FirstOrDefault();
            var ApplicationSettings = JsonConvert.DeserializeObject <ApplicationSettings>(data);

            return(ApplicationSettings);
        }
Ejemplo n.º 2
0
        public void InitializeApplicationSettings(ApplicationSettings settings)
        {
            var dataList = SqliteDataBase.GetData(settings.Id);

            if (dataList.Count != 0)
            {
                return;
            }

            ApplicationSettings = settings;
            string output = JsonConvert.SerializeObject(settings);

            SqliteDataBase.AddData(output, settings.Id);
        }