private void btnNovo_Click(object sender, EventArgs e) { frmCadastro cad = new frmCadastro(0); cad.ShowDialog(); CarregaGrid(); }
private void btnAlterar_Click(object sender, EventArgs e) { if (dgvDados.SelectedRows.Count == 1) { int id = Convert.ToInt32(dgvDados.CurrentRow.Cells[0].Value.ToString()); frmCadastro altera = new frmCadastro(id); altera.ShowDialog(); CarregaGrid(); } }
private void lblCadastrar_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { frmCadastro cad = new frmCadastro(0); cad.Show(); }