Exemple #1
0
 private void btnExcluir_Click(object sender, EventArgs e)
 {
     if (Funcoes.Confirma("Posso excluir esse grupo ?", "Alerta"))
     {
         if (gpo.Excluir(int.Parse(txtID.Text)))
         {
             MessageBox.Show("ID/Grupo excluido com sucesso !");
             LimparDados();
             gpoDados.Enabled = false;
             txtID.Focus();
         }
     }
     else
     {
         txtDescricao.Focus();
     }
 }