示例#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 async override void OnNavigatedTo(NavigationEventArgs e)
        {
            ProgressRing1.IsActive = true;
            ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient client = new ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient();
            //ServiceReferenceForTest.Service1Client client = new ServiceReferenceForTest.Service1Client();
            ListBoxMeta.ItemsSource = await client.GetDataAsync(TextBoxUrl.Text);

            ProgressRing1.IsActive = false;
        }
示例#2
0
        private async void ButtonGetData(object sender, RoutedEventArgs e)
        {
            ProgressRing1.IsActive = true;
            //ServiceReferenceForTest.Service1Client client = new ServiceReferenceForTest.Service1Client();
            ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient client = new ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient();

            //ListBoxMeta.Items.Add(await client.GetDataAsync());
            ListBoxMeta.ItemsSource = await client.GetDataAsync(TextBoxUrl.Text);

            //TextBlockOutput.Text = await client.GetDataAsync();
            ProgressRing1.IsActive = false;
        }