Example #1
0
        private void homeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MenuPrincipal m = new MenuPrincipal();

            m.ShowDialog();
            this.Hide();
        }
Example #2
0
        private void btnFinalizar_Click(object sender, EventArgs e)
        {
            float total = float.Parse(txtTotal.Text);

            pDAO.Inserir(lstPed, total, cli);
            this.Close();
            MenuPrincipal mp = new MenuPrincipal();

            mp.ShowDialog();
        }
Example #3
0
        private void btnEntrar_Click(object sender, EventArgs e)
        {
            u.Username = txtUser.Text;
            u.Password = txtSenha.Text;
            Usuario us = uDAO.verificaUsuario(u);

            if (us.Credencial != null)
            {
                this.Hide();
                MenuPrincipal p = new MenuPrincipal();
                p.validaUsuario(u);
                p.ShowDialog();
                this.Close();
            }
            else
            {
                MessageBox.Show("Senha incorreta! Tente novamente", "Erro");
            }
        }