public AppSettings(IsolatedStorageSettings settings) { if (settings == null) throw new ArgumentNullException("settings"); _settings = settings; _globalPass = new GlobalPassHandler(this); }
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]; }
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]; } }