protected async void OnApplicationSettingChangedEvent(ApplicationSettingChangedEventArgs e) { // *** // *** Check for when the keys change to load/reload the data // *** if (e.PropertyName == MagicValue.Property.Name.LifxApiKey || e.PropertyName == MagicValue.Property.Name.AwsAccessKeyId || e.PropertyName == MagicValue.Property.Name.AwsSecretAccessKey) { await this.LoadData(); } }
protected void OnApplicationSettingChangedEvent(ApplicationSettingChangedEventArgs e) { // *** // *** Check for when the AWS keys change // *** if (e.PropertyName == MagicValue.Property.Name.AwsAccessKeyId || e.PropertyName == MagicValue.Property.Name.AwsSecretAccessKey) { // *** // *** Dispose this soit can be reinitialized // *** this.Dispose(); } }