private void pictureBox5_Click_1(object sender, EventArgs e) { Iniciar_Sesion iniciar_Sesion = new Iniciar_Sesion(); iniciar_Sesion.Show(); this.Hide(); }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Iniciar_Sesion iniciar_Sesion = new Iniciar_Sesion(); iniciar_Sesion.Show(); this.Hide(); }
private void bunifuFlatButton1_Click(object sender, EventArgs e) { OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=Base de datos general de identitic.accdb"); if (bunifuMaterialTextbox1.Text == "nombre completo" || bunifuMaterialTextbox2.Text == "Mail" || comboBox1.SelectedText == "Funcion" || bunifuMaterialTextbox4.Text == "Contraseña" || bunifuMaterialTextbox5.Text == "Apellido") { MessageBox.Show("Faltan completar campos"); } else { MessageBox.Show("Usuario Registrado. ¡Ahora inicia sesion!"); Iniciar_Sesion iniciar_Sesion = new Iniciar_Sesion(); iniciar_Sesion.Show(); this.Hide(); string sql = "INSERT INTO Registro (email, nombre, apellido, contrasena, Funcion) VALUES ('" + bunifuMaterialTextbox1.Text + "','" + bunifuMaterialTextbox1.Text + "', '" + bunifuMaterialTextbox1.Text + "','" + bunifuMaterialTextbox4.Text + "', '" + comboBox1.Text + "')"; comando = new OleDbCommand(sql, con); con.Open(); comando.ExecuteNonQuery(); con.Close(); } }