Ejemplo n.º 1
0
        public static async Task SaveSettingAsync(SettingData data)
        {
            ApplicationData.Current.LocalSettings.Values["SettingDataInitializeCompleted"] = true;
            await DataSerializer.DataContractSerializeAsync("SettingData", typeof(SettingData), data);

            await WriteBytesStorageFileAsync("MainBackground", data.AppTheme.MainBackground.UIImage);
            await WriteBytesStorageFileAsync("AppBarTopBackground", data.AppTheme.TopAppBarBackground.UIImage);
            await WriteBytesStorageFileAsync("AppBarBottomBackground", data.AppTheme.BottomAppBarBackground.UIImage);
            await WriteBytesStorageFileAsync("TweetBarBottomBackground", data.AppTheme.BottomTweetBarBackground.UIImage);
            await WriteBytesStorageFileAsync("SettingsFlyoutBackground", data.AppTheme.SettingsFlyoutBackground.UIImage);
        }
Ejemplo n.º 2
0
 public static async Task SaveTwitterDataAsync(TwitterData data)
 {
     ApplicationData.Current.LocalSettings.Values["TwitterDataInitializeCompleted"] = true;
     await DataSerializer.DataContractSerializeAsync("TwitterData", typeof(TwitterData), data);
 }