Exemplo n.º 1
0
        private void rolToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRol frmRol = new frmRol();

            frmRol.MdiParent = this;
            frmRol.Show();
        }
Exemplo n.º 2
0
        private void rolesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frmRol = new frmRol();

            frmRol.Show();
        }
Exemplo n.º 3
0
        private void cmdRolAlta_Click(object sender, EventArgs e)
        {
            frmRol formRol = new frmRol();

            formRol.Show();
        }
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            if (cmbFuncionalidades.SelectedIndex == -1)
            {
                MessageBox.Show("Debe seleccionar una funcionalidad.", "Error");
            }
            else
            {
                itemComboBox seleccion = cmbFuncionalidades.SelectedItem as itemComboBox;
                switch (seleccion.IdFuncionalidad)
                {
                case -2:
                    frmCambiarPassword formPass = new frmCambiarPassword(false);
                    formPass.Show();
                    break;

                case 1:
                    frmAbmCliente form1 = new frmAbmCliente(this);
                    this.Hide();
                    form1.Show();
                    break;

                case 2:
                    frmAbmEmpresa form2 = new frmAbmEmpresa(this);
                    this.Hide();
                    form2.Show();
                    break;

                case 3:
                    frmGrado form3 = new frmGrado();
                    this.Hide();
                    form3.ShowDialog();
                    this.Show();
                    break;

                case 4:
                    frmRol form4 = new frmRol();
                    this.Hide();
                    form4.Show();
                    break;

                case 5:
                    frmRubro form5 = new frmRubro(this);
                    this.Hide();
                    form5.ShowDialog();
                    this.Show();
                    break;

                case 6:
                    frmCanjePuntos form6 = new frmCanjePuntos();
                    this.Hide();
                    form6.ShowDialog();
                    this.Show();
                    break;

                case 7:
                    frmComprar form7 = new frmComprar();
                    this.Hide();
                    form7.ShowDialog();
                    this.Show();
                    break;

                case 8:
                    frmEditarPublicacion form8 = new frmEditarPublicacion();
                    this.Hide();
                    form8.ShowDialog();
                    this.Show();
                    break;

                case 9:
                    string modo = "Nuevo";
                    frmGenerarPublicacion form9 = new frmGenerarPublicacion(modo);
                    this.Hide();
                    form9.ShowDialog();
                    this.Show();
                    break;

                case 10:
                    frmGenerarRendicionesComisiones form10 = new frmGenerarRendicionesComisiones();
                    this.Hide();
                    form10.ShowDialog();
                    this.Show();
                    break;

                case 11:
                    frmHistorialCliente form11 = new frmHistorialCliente(this);
                    this.Hide();
                    form11.ShowDialog();
                    this.Show();
                    break;

                case 12:
                    frmListadoEstadistico form12 = new frmListadoEstadistico();
                    this.Hide();
                    form12.Show();
                    break;
                }
            }
        }