Пример #1
0
 private void FarToCelBut_Click(object sender, EventArgs e)
 {
     //Fahrenheit to Celsius Conversation
     TempConvWCFServ.Service1Client TempConvSerCli = new TempConvWCFServ.Service1Client();
     try { Result.Text = TempConvSerCli.f2c(int.Parse(InpFar.Text)).ToString(); }
     catch (Exception) { Console.WriteLine("Exception caught in FarToCelConv"); }
 }
Пример #2
0
 private void CelToFarBut_Click(object sender, EventArgs e)
 {
     //Celsius to Fahrenheit Conversation
     TempConvWCFServ.Service1Client TempConvSerCli = new TempConvWCFServ.Service1Client();
     try { Result.Text = TempConvSerCli.c2f(int.Parse(InpCel.Text)).ToString(); }
     catch (Exception) { Console.WriteLine("Exception caught in CelToFarConv"); }
 }