Exemple #1
0
        private void dgvUsuarios_DoubleClick(object sender, EventArgs e)
        {
            frmCadUsuario frm = new frmCadUsuario();

            frm.MdiParent = this.MdiParent;
            frm.populateData(dgvUsuarios.Rows[dgvUsuarios.SelectedRows[0].Index].Cells["Id"].Value.ToString());
            frm.Show();
        }
Exemple #2
0
        private void editarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadUsuario frm = new frmCadUsuario();

            frm.MdiParent = this.MdiParent;
            frm.Text      = "Editar Usuário";
            frm.populateData(dgvUsuarios.Rows[dgvUsuarios.SelectedRows[0].Index].Cells["Id"].Value.ToString());
            frm.Show();
        }