示例#1
0
        private void LoadCinema()
        {
            if (!_applicationSettingsService.Contains(CurrentCinemaKey))
            {
                return;
            }

            var json = _applicationSettingsService.Get <string>(CurrentCinemaKey);

            if (string.IsNullOrEmpty(json))
            {
                _applicationSettingsService.Remove(CurrentCinemaKey);
                return;
            }

            var cinema = JsonConvert.DeserializeObject <Cinema>(json);

            ChangeCinema(cinema);
        }