private void Button3_Click(object sender, EventArgs e) { string id = dataGridView1.SelectedRows[0].Cells["id"].Value.ToString(); frmCadastrarUsuario frm = new frmCadastrarUsuario(user.GetDTO(id)); frm.ShowDialog(); AtualizaDataGrid(); }
private void novoUsuárioToolStripMenuItem_Click(object sender, EventArgs e) { frmCadastrarUsuario CadastrarUsuario = new frmCadastrarUsuario(); CadastrarUsuario.ShowDialog(); }