private void Comidas_Click(object sender, EventArgs e)
        {
            SidePanel.Visible = true;

            SidePanel.Height = Comidas.Height;
            SidePanel.Top    = Comidas.Top;

            btnDom.Visible  = false;
            btnTer.Visible  = false;
            btnSab.Visible  = false;
            btnQuar.Visible = false;
            btnQuin.Visible = false;
            btnSeg.Visible  = false;
            btnSex.Visible  = false;

            SidePanel.Height = Comidas.Height;
            SidePanel.Top    = Comidas.Top;

            _obj = this;

            Comida comida = new Comida();

            comida.Dock = DockStyle.Fill;
            panel4.Controls.Add(comida);
            btnnn.Instance.Pnlpanel.Controls["comida"].BringToFront();

            Comidasbtn comidabtn = new Comidasbtn();

            comidabtn.Dock = DockStyle.Fill;
            btnnn.Instance.panelb.Controls.Add(comidabtn);
            btnnn.Instance.panelb.Controls["Comidasbtn"].BringToFront();

            panelb.Visible = true;
        }
        private void Delivery_Click(object sender, EventArgs e)
        {
            SidePanel.Height = Delivery.Height;
            SidePanel.Top    = Delivery.Top;

            btnDom.Visible  = false;
            btnTer.Visible  = false;
            btnSab.Visible  = false;
            btnQuar.Visible = false;
            btnQuin.Visible = false;
            btnSeg.Visible  = false;
            btnSex.Visible  = false;


            SidePanel.Height = Delivery.Height;
            SidePanel.Top    = Delivery.Top;

            _obj = this;


            cliFunc cli = new cliFunc();

            cli.Dock = DockStyle.Fill;
            btnnn.Instance.panelb.Controls.Add(cli);
            btnnn.Instance.panelb.Controls["cliFunc"].BringToFront();
        }
        private void Bebidas_Click(object sender, EventArgs e)
        {
            SidePanel.Visible = true;

            SidePanel.Height = Bebidas.Height;
            SidePanel.Top    = Bebidas.Top;

            btnDom.Visible  = false;
            btnTer.Visible  = false;
            btnSab.Visible  = false;
            btnQuar.Visible = false;
            btnQuin.Visible = false;
            btnSeg.Visible  = false;
            btnSex.Visible  = false;

            SidePanel.Height = Bebidas.Height;
            SidePanel.Top    = Bebidas.Top;

            _obj = this;

            Bebidas bebidas = new Bebidas();

            bebidas.Dock = DockStyle.Fill;
            btnnn.Instance.Pnlpanel.Controls.Add(bebidas);
            btnnn.Instance.Pnlpanel.Controls["bebidas"].BringToFront();

            BebidasButtons bbb = new BebidasButtons();

            bbb.Dock = DockStyle.Fill;
            btnnn.Instance.panelb.Controls.Add(bbb);
            btnnn.Instance.panelb.Controls["BebidasButtons"].BringToFront();

            panelb.Visible = true;
        }
        private void btnOferta_Click(object sender, EventArgs e)
        {
            SidePanel.Visible = true;

            SidePanel.Height = btnOferta.Height;
            SidePanel.Top    = btnOferta.Top;


            btnDom.Visible  = true;
            btnTer.Visible  = true;
            btnSab.Visible  = true;
            btnQuar.Visible = true;
            btnQuin.Visible = true;
            btnSeg.Visible  = true;
            btnSex.Visible  = true;
            _obj            = this;


            Oferta of = new Oferta();

            of.Dock = DockStyle.Fill;
            panel4.Controls.Add(of);

            btnnn.Instance.Pnlpanel.Controls["Oferta"].BringToFront();

            panelb.Visible = false;
        }
 private void timer1_Tick(object sender, EventArgs e)
 {
     panel6.Width += 6;
     if (panel6.Width >= 309)
     {
         timer1.Stop();
         this.Close();
         btnnn tela = new btnnn(Nomeusuario.Text);
         tela.ShowDialog();
     }
 }
Ejemplo n.º 6
0
 private void timer2_Tick(object sender, EventArgs e)
 {
     panel6.Width += 10;
     if (panel6.Width >= 309)
     {
         timer2.Stop();
         this.Close();
         btnnn tela = new btnnn();
         tela.ShowDialog();
     }
 }
        private void btnnn_Load(object sender, EventArgs e)
        {
            _obj = this;


            btnDom.Visible    = false;
            btnTer.Visible    = false;
            btnSab.Visible    = false;
            btnQuar.Visible   = false;
            btnQuin.Visible   = false;
            btnSeg.Visible    = false;
            btnSex.Visible    = false;
            SidePanel.Visible = false;

            IntCard ins = new IntCard();

            ins.Dock = DockStyle.Fill;
            panel4.Controls.Add(ins);
        }
        private void label3_Click(object sender, EventArgs e)
        {
            SidePanel.Visible = false;
            btnDom.Visible    = false;
            btnTer.Visible    = false;
            btnSab.Visible    = false;
            btnQuar.Visible   = false;
            btnQuin.Visible   = false;
            btnSeg.Visible    = false;
            btnSex.Visible    = false;
            _obj = this;

            btnnn.Instance.Pnlpanel.Controls["intcard"].BringToFront();
            IntCard ins = new IntCard();

            ins.Dock = DockStyle.Fill;
            panel4.Controls.Add(ins);

            panelb.Visible = false;
        }
        private void Carrinho_Click(object sender, EventArgs e)
        {
            SidePanel.Visible = true;

            SidePanel.Height = Comidas.Height;
            SidePanel.Top    = Comidas.Top;

            SidePanel.Height = Carrinho.Height;
            SidePanel.Top    = Carrinho.Top;

            _obj = this;

            Carrinho car = new Carrinho();

            car.Dock = DockStyle.Fill;
            btnnn.Instance.panel4.Controls.Add(car);
            btnnn.Instance.panel4.Controls["Carrinho"].BringToFront();

            FormCarrinho carr = new FormCarrinho();

            carr.Dock = DockStyle.Fill;
            btnnn.Instance.panelb.Controls.Add(carr);
            btnnn.Instance.panelb.Controls["FormCarrinho"].BringToFront();
        }
        private void btnCont_Click_1(object sender, EventArgs e)
        {
            btnnn cardapio = new btnnn();

            cardapio.ShowDialog();
        }