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

            frm.MdiParent = this.MdiParent;
            frm.populateData();
            frm.Show();
        }
Exemple #2
0
        private void dgvUsuarios_DoubleClick(object sender, EventArgs e)
        {
            frmCadGrupo frm = new frmCadGrupo();

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

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