Exemple #1
0
 private void btnSalvar_Click(object sender, EventArgs e)
 {
     tsNenhuma.Text = "";
     try
     {
         ts.Text = ValidarCad();
         if (ts.Text == "Sucesso")
         {
             service.Cadastrar(objGerado());
             MessageBox.Show("Consulta Efetuada com Sucesso");
             this.Close();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Erro ao Salvar " + ex.Message);
     }
 }