예제 #1
0
 private void btnDeletar_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Deseja realmente EXCLUIR o imovel? ", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation) == DialogResult.OK)
     {
         ImovelDAO iDAO = new ImovelDAO();
         iDAO.Excluir(int.Parse(textBoxID.Text));
         this.Dispose();
     }
     else
     {
         this.Dispose();
     }
 }