private void button1_Click(object sender, EventArgs e) { FrmCadastroUsuarios_Antigo cad = new FrmCadastroUsuarios_Antigo(); cad.ShowDialog(); carregaGrid(); }
private void btnEditar_Click(object sender, EventArgs e) { if (gridUsuarios.CurrentRow.Cells[0].Value != null) { FrmCadastroUsuarios_Antigo cad = new FrmCadastroUsuarios_Antigo(); // cad.editando(int.Parse(gridUsuarios.CurrentRow.Cells[0].Value.ToString())); cad.ShowDialog(); gridUsuarios.Rows.Clear(); carregaGrid(); } else { MessageBox.Show("Selecione um registro!"); } }