Пример #1
0
        private void button_Aceptar_Click(object sender, EventArgs e)
        {
            if (comboBox_funcionalidades.SelectedIndex == 0 && primeraVez == 1)
            {
                this.Hide();
                Registro_de_Usuario.Alta altaUsuario = new Registro_de_Usuario.Alta();
                altaUsuario.cliente = true;
                altaUsuario.Show();
            }
            if (comboBox_funcionalidades.SelectedIndex == 0 && primeraVez != 1)
            {
                this.Hide();
                Registro_de_Usuario.Modificacion modUsuario = new Registro_de_Usuario.Modificacion();
                modUsuario.cliente = true;
                modUsuario.Show();
            }
            if (comboBox_funcionalidades.SelectedIndex == 1)
            {
                Comprar_Ofertar.Comprar comprar = new Comprar_Ofertar.Comprar();
                comprar.Show();
                this.Close();
            }
            if (comboBox_funcionalidades.SelectedIndex == 2)
            {
                Comprar_Ofertar.Ofertar ofertar = new Comprar_Ofertar.Ofertar();
                ofertar.Show();
                this.Close();
            }
            if (comboBox_funcionalidades.SelectedIndex == 3)
            {
                Gestion_de_Preguntas.Ver_Respestas preguntas = new Gestion_de_Preguntas.Ver_Respestas();
                preguntas.Show();
            }
            if (comboBox_funcionalidades.SelectedIndex == 4)
            {
                Calificar_Vendedor.ListaOperacionesSeleccion calificar = new Calificar_Vendedor.ListaOperacionesSeleccion();
                calificar.Show();
                this.Close();

            }
            if (comboBox_funcionalidades.SelectedIndex == 5)
            {
                Historial_Cliente.Historial historial = new Historial_Cliente.Historial();
                historial.cliente = true;
                historial.Show();
                this.Close();

            }
        }
Пример #2
0
 private void button_Aceptar_Click(object sender, EventArgs e)
 {
     if (comboBox_funcionalidades.SelectedIndex == 0 && primeraVez == 1)
     {
         this.Hide();
         Registro_de_Usuario.Alta altaUsuario = new Registro_de_Usuario.Alta();
         altaUsuario.cliente = false;
         altaUsuario.Show();
     }
     if (comboBox_funcionalidades.SelectedIndex == 0 && primeraVez != 1)
     {
         this.Hide();
         Registro_de_Usuario.Modificacion modUsuario = new Registro_de_Usuario.Modificacion();
         modUsuario.Show();
     }
     if (comboBox_funcionalidades.SelectedIndex == 1)
     {
         Generar_Publicacion.Form_Base publicacion = new Generar_Publicacion.Form_Base();
         publicacion.Show();
         this.Close();
     }
     if (comboBox_funcionalidades.SelectedIndex == 2)
     {
         Editar_Publicacion.Form_Base publicacion = new Editar_Publicacion.Form_Base();
         publicacion.Show();
         this.Close();
     }
     if (comboBox_funcionalidades.SelectedIndex == 3)
     {
         Gestion_de_Preguntas.Responder_Preguntas responder = new Gestion_de_Preguntas.Responder_Preguntas();
         responder.Show();
         this.Close();
     }
     if (comboBox_funcionalidades.SelectedIndex == 4)
     {
         this.Hide();
         Historial_Cliente.Historial historial = new Historial_Cliente.Historial();
         historial.cliente = false;
         historial.Show();
     }
     if (comboBox_funcionalidades.SelectedIndex == 5)
     {
         this.Hide();
         Facturar_Publicaciones.FacturarPublicaciones facturar = new Facturar_Publicaciones.FacturarPublicaciones();
         facturar.Show();
     }
 }
Пример #3
0
 private void button_ModificacionUsuario_Click(object sender, EventArgs e)
 {
     this.Hide();
     Registro_de_Usuario.Modificacion modUsuario = new Registro_de_Usuario.Modificacion();
     modUsuario.Show();
 }