示例#1
0
        public AppSettings(IsolatedStorageSettings settings)
        {
            if (settings == null)
                throw new ArgumentNullException("settings");

            _settings = settings;
            _globalPass = new GlobalPassHandler(this);
        }
示例#2
0
        public AppSettings(IsolatedStorageSettings settings)
        {
            if (settings == null)
                throw new ArgumentNullException("settings");

            _settings = settings;
            _globalPass = new GlobalPassHandler(this);

            if (!_settings.Contains(KEY_INSTANCE_ID))
            {
                _instanceId = Guid.NewGuid().ToString("N");
                _settings[KEY_INSTANCE_ID] = _instanceId;
                _settings.Save();
            }
            else
                _instanceId = (string)_settings[KEY_INSTANCE_ID];
        }
示例#3
0
        public AppSettings(IsolatedStorageSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            _settings   = settings;
            _globalPass = new GlobalPassHandler(this);

            if (!_settings.Contains(KEY_INSTANCE_ID))
            {
                _instanceId = Guid.NewGuid().ToString("N");
                _settings[KEY_INSTANCE_ID] = _instanceId;
                _settings.Save();
            }
            else
            {
                _instanceId = (string)_settings[KEY_INSTANCE_ID];
            }
        }