Exemple #1
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            if (await LiveConnection.Instance.CreateConnectionAsync())
            {
                var info = await SayHi();
                var localStorageManager =new LocalStorageManager("UserInfo.xml");
                await localStorageManager.SaveAsync(info);
                
                await UploadFile();

                await DownloadFile();

                var dlocalStorageManager = new LocalStorageManager("DownloadedUserInfo.xml");
                var restoreData = await dlocalStorageManager.RestoreAsync<UserInformationModel>();
            }
        }