Esempio n. 1
0
 private void btnDivide_Click(object sender, EventArgs e)
 {
     try
     {
         lblResult.Text = client.Divide(Convert.ToInt32(TxtNumerator.Text), Convert.ToInt32(txtDenomirator.Text)).ToString();
     }
     catch (FaultException faultException)
     {
         lblResult.Text = faultException.Message;
     }
 }
Esempio n. 2
0
 private void btnDivide_Click(object sender, EventArgs e)
 {
     try
     {
         lblResult.Text = client.Divide(Convert.ToInt32(TxtNumerator.Text), Convert.ToInt32(txtDenomirator.Text)).ToString();
     }
     catch (FaultException <DividedByZeroFault> faultException)
     {
         lblResult.Text = faultException.Detail.details + "-" + faultException.Detail.error;
     }
 }