public void atualizaForm() { if (btnIncluirClicado == true) { frmManutenção frmManu = new frmManutenção(this.idDenun, "Inclusão"); this.Hide(); GC.Collect(); frmManu.Show(); } else { if (btnLogoffClicado == true) { this.Close(); frmLog.Show(); } } }
private void dgvDenuncias_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int saida; if (e.RowIndex != -1) { if (int.TryParse(dgvDenuncias.Rows[e.RowIndex].Cells[0].Value.ToString(), out saida)) { //this.idDenun = int.Parse(dgvDenuncias.Rows[e.RowIndex].Cells[0].Value.ToString()); this.idDenun = saida; } } frmManutenção frmManu = new frmManutenção(this.idDenun, "Consulta"); this.Hide(); GC.Collect(); frmManu.Show(); }