示例#1
0
        private async void buttonConvert_Click(object sender, EventArgs e)
        {
            ShowWaitForm();
            //string result = webService.XmlToJson(textBoxXmlToConvert.Text);
            string result = await AsyncMethods.ConvertXmlToAsync(textBoxXmlToConvert.Text);

            HideWaitForm();

            textBoxXmlResult.Text = result;
        }
示例#2
0
        private async void buttonCompute_Click(object sender, EventArgs e)
        {
            int n = Convert.ToInt32(int.Parse(textBoxValueToCompute.Text));

            ShowWaitForm();
            //int result = webService.Fibonacci(n);
            int result = await AsyncMethods.FibonacciToAsync(n);

            HideWaitForm();

            textBoxFibonacciResult.Text = result.ToString();
        }