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; }
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(); }