Exemplo n.º 1
0
 private void btnExcluir_Click(object sender, EventArgs e)
 {
     try
     {
         model delete = new model();
         if (textBoxID.Text != string.Empty)
         {
             delete.DeleteLancamento(textBoxID.Text);
         }
         else
         {
             MessageBox.Show("Selecione um registro");
         }
         this.Close();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }