private void pbCriar_Click(object sender, EventArgs e) { ExemplarViewEditar vw = new ExemplarViewEditar(); vw.ShowDialog(); atualizaTela(); }
private void pbEditar_Click(object sender, EventArgs e) { ExemplarViewEditar vw = new ExemplarViewEditar(((int)gridAutor.CurrentRow.Cells[0].Value), (bool)gridAutor.CurrentRow.Cells[1].Value, (int)gridAutor.CurrentRow.Cells[2].Value, (int)gridAutor.CurrentRow.Cells[3].Value); vw.ShowDialog(); atualizaTela(); }