コード例 #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 = 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();
     }
 }
コード例 #2
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     Editar_Publicacion.Form_Base publicacion = new Editar_Publicacion.Form_Base();
     publicacion.Show();
     this.Close();
 }