private void C2FBtn_Click(object sender, EventArgs e) // button function for converting Celcius to Fahrenheit { TempCovService.Service1Client tempService = new TempCovService.Service1Client(); // Initializing a TempCovService Client Object int C = Int32.Parse(textBox1.Text); // converting the Celcius value in "textBox1" text to integer format int F = tempService.C2f(C); // converting the Celcius value to Fahrenheit label3.Text = F.ToString(); // displaying the converted value to "label3" label }