private void btnEntrarLogin_Click(object sender, EventArgs e) { frmMenuPrincipal menu = new frmMenuPrincipal(); this.Hide(); menu.Show(); /* * Controle controle = new Controle(); * controle.Acessar(txtUsuarioLogin.Text, txtSenhaLogin.Text); * if (controle.mensagem.Equals("")) * if (controle.T) * { * MessageBox.Show("Usuario Logado com Sucesso", "Logado", MessageBoxButtons.OK, MessageBoxIcon.Information); * * * frmMenuPrincipal menu = new frmMenuPrincipal(); * this.Hide(); * menu.Show(); * } * else * { * MessageBox.Show("Usuario/Senha Invalidos", "Atenção", MessageBoxButtons.OK, MessageBoxIcon.Error); * } * else * { * MessageBox.Show(controle.mensagem); * } * }*/ }
private void button1_Click(object sender, EventArgs e) { frmMenuPrincipal principal = new frmMenuPrincipal(); principal.Show(); this.Visible = false; }
private void BtnVoltarConsVend_Click(object sender, EventArgs e) { frmMenuPrincipal menu = new frmMenuPrincipal(); menu.Show(); this.Visible = false; }
private void btnVoltarPacotes_Click(object sender, EventArgs e) { frmMenuPrincipal principal = new frmMenuPrincipal(); principal.Show(); this.Visible = false; }