private void regresarToolStripMenuItem_Click(object sender, EventArgs e) { control pane = new control(); pane.Show(); this.Hide(); }
private void btnCerrar_Click(object sender, EventArgs e) { control pane = new control(); pane.Show(); this.Hide(); }
private void btnAceptar_Click(object sender, EventArgs e) { if (lblConnection.Text == "Conectado Servidor") { try { CN.abrir(); CN.consulta("SELECT * FROM usuarios WHERE contrasena = '" + txtContraseña.Text + "' AND usuario = '" + txtUsuario.Text + "';"); int count = 0; while (CN.dr.Read()) { count++; } if (count == 1) { control pane = new control(); pane.Show(); this.Hide(); } } catch (MySqlException x) { MessageBox.Show(x.ToString()); } CN.cerrar(); } }
private void btnAgregar_Click(object sender, EventArgs e) { control pane = new control(); pane.cliente = cliente; pane.txtNombre.Text = txtNombre.Text; pane.txtApellidos.Text = apellidos; pane.Show(); this.Hide(); }