コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: porrey/aws-iot-lifx
 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();
     }
 }
コード例 #2
0
 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();
     }
 }