Ejemplo n.º 1
0
        public static async Task <SettingData> LoadSettingAsync()
        {
            SettingData resultData = new SettingData();

            resultData = await DataSerializer.DataContractDeselializeAsync("SettingData", typeof(SettingData)) as SettingData;

            resultData.AppTheme.MainBackground.UIImage = await ReadBytesStorageFileAsync("MainBackground");

            resultData.AppTheme.TopAppBarBackground.UIImage = await ReadBytesStorageFileAsync("AppBarTopBackground");

            resultData.AppTheme.BottomAppBarBackground.UIImage = await ReadBytesStorageFileAsync("AppBarBottomBackground");

            resultData.AppTheme.BottomTweetBarBackground.UIImage = await ReadBytesStorageFileAsync("TweetBarBottomBackground");

            resultData.AppTheme.SettingsFlyoutBackground.UIImage = await ReadBytesStorageFileAsync("SettingsFlyoutBackground");

            resultData.SettingConstInitialize();
            return(resultData);
        }
Ejemplo n.º 2
0
 public static async Task <TwitterData> LoadTwitterDataAsync()
 {
     return(await DataSerializer.DataContractDeselializeAsync("TwitterData", typeof(TwitterData)) as TwitterData);
 }