Beispiel #1
0
        public void SaveSetting(LocalSetting localSetting)
        {
            var repo = new DisconnectedRepository();

            var setting = repo.GetLocalSettings();

            if (setting != null)
            {
                repo.EditLocalSetting(localSetting);
            }
            else
            {
                repo.AddNewLocalSetting(localSetting);
            }
        }
Beispiel #2
0
        public void CreateLocalSetting(LocalSetting localSetting)
        {
            var repo = new DisconnectedRepository();

            repo.AddNewLocalSetting(localSetting);
        }