private void btnExcluir_Click(object sender, EventArgs e) { if (ckbDisp.Checked) { this.disponivel = 1; } else { this.disponivel = 0; } ConManager.DeletarProduto(gridViewID, gridViewNome, disponivel); this.Close(); }