Esempio n. 1
0
        /// </summary>


        private void btnConnection_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            SidePanel.Height = btnConnection.Height;
            SidePanel.Top    = btnConnection.Top;
            connectionFrame1.BringToFront();
        }
Esempio n. 2
0
 private void btnHome_Click(object sender, EventArgs e)
 {
     SidePanel.Show();
     SidePanel.Height = btnHome.Height;
     SidePanel.Top    = btnHome.Top;
     homeFrame1.BringToFront();
 }
        private void btndelv_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            movesidepanel(btndelv);
            uc_delivery ff = new uc_delivery();

            addcontroltopanel(ff);
            label4.Text = "Delivery";
        }
Esempio n. 4
0
 private void btnViewSensor_Click(object sender, EventArgs e)
 {
     SidePanel.Show();
     SidePanel.Height = btnViewSensor.Height;
     SidePanel.Top    = btnViewSensor.Top;
     sensorFrame1.progressbarCircleTemp.Value = connectionFrame1.dataIn;
     sensorFrame1.tvTempValue.Text            = sensorFrame1.progressbarCircleTemp.Value.ToString() + " C";
     sensorFrame1.BringToFront();
 }
        private void btnoffers_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            movesidepanel(btnoffers);
            uc_offers ff = new uc_offers();

            addcontroltopanel(ff);
            label4.Text = "Offers";
        }
        private void button10_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            movesidepanel(btnhome);
            uc_home hh = new uc_home();

            addcontroltopanel(hh);
            label4.Text = "Home";
        }
        private void button7_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            movesidepanel(button7);
            uc_about h = new uc_about();

            addcontroltopanel(h);
            label4.Text = "About Us";
        }
        private void btnfeed_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            movesidepanel(btnfeed);
            uc_feed h = new uc_feed();

            addcontroltopanel(h);
            label4.Text = "Feedback";
        }
        private void btnpay_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            movesidepanel(btnpay);
            us_pay h = new us_pay();

            addcontroltopanel(h);
            label4.Text = "Driver Payment";
        }
        private void btnmenu_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            movesidepanel(btnmenu);
            uc_menu ff = new uc_menu();

            addcontroltopanel(ff);
            label4.Text = "Menu";
        }
Esempio n. 11
0
        private void show_page_default()
        {
            SidePanel.Height = btn_menuPedidos.Height;
            SidePanel.Top    = btn_menuPedidos.Top;
            SidePanel.Show();
            uc_Pedido uc_pedido = new uc_Pedido();

            main_panel.Controls.Add(uc_pedido);
            uc_pedido.Dock = DockStyle.Fill;
            uc_pedido.BringToFront();
        }
Esempio n. 12
0
        private void btn_menuHistorialPedidos_Click(object sender, EventArgs e)
        {
            SidePanel.Height = btn_menuHistorialPedidos.Height;
            SidePanel.Top    = btn_menuHistorialPedidos.Top;
            SidePanel.Show();
            uc_HistorialPedidos uc_historial = new uc_HistorialPedidos();

            main_panel.Controls.Add(uc_historial);
            uc_historial.Dock = DockStyle.Fill;
            uc_historial.BringToFront();
        }
Esempio n. 13
0
        //--------------------------------------------------------------------------Botões CLIENTE / OFICINA / ALUGUER / VENDAS---------------------------------------------------------------------
        private void buttonClientes_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            SidePanel.Height = buttonClientes.Height;
            SidePanel.Top    = buttonClientes.Top;

            panelMenu.Controls.Clear();
            FormClientes formClientes = new FormClientes();

            formClientes.TopLevel = false;
            panelMenu.Controls.Add(formClientes);
            formClientes.Show();
        }
Esempio n. 14
0
        private void buttonAluguer_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            SidePanel.Height = buttonAluguer.Height;
            SidePanel.Top    = buttonAluguer.Top;

            panelMenu.Controls.Clear();
            FormAluguer formAluguer = new FormAluguer();

            formAluguer.TopLevel = false;
            panelMenu.Controls.Add(formAluguer);
            formAluguer.Show();
        }
Esempio n. 15
0
        private void buttonOficina_Click(object sender, EventArgs e)
        {
            SidePanel.Show();
            SidePanel.Height = buttonOficina.Height;
            SidePanel.Top    = buttonOficina.Top;

            panelMenu.Controls.Clear();
            FormOficina formOficina = new FormOficina();

            formOficina.TopLevel = false;
            panelMenu.Controls.Add(formOficina);
            formOficina.Show();
        }
Esempio n. 16
0
 private void btn_menuVendedores_Click(object sender, EventArgs e)
 {
     SidePanel.Height = btn_menuVendedores.Height;
     SidePanel.Top    = btn_menuVendedores.Top;
     SidePanel.Show();
     if (!main_panel.Controls.Contains(uc_ABM_Vendedor.pub_instance))
     {
         main_panel.Controls.Add(uc_ABM_Vendedor.pub_instance);
         uc_ABM_Vendedor.pub_instance.Dock = DockStyle.Fill;
         uc_ABM_Vendedor.pub_instance.BringToFront();
     }
     else
     {
         uc_ABM_Vendedor.pub_instance.BringToFront();
     }
 }
Esempio n. 17
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (!allowed)
     {
         alert.Hide();
         alert2.Hide();
         Alert3.BringToFront();
         Alert3.Show();
     }
     else
     {
         alert.Hide();
         alert2.Hide();
         Alert3.Hide();
         SidePanel.Show();
         SidePanel.Height = button2.Height;
         SidePanel.Top    = button2.Top;
         mySecondCustmControl11.BringToFront();
     }
 }
Esempio n. 18
0
 //Checkeando si se puede traer al frente los demas componentes
 private void button1_Click(object sender, EventArgs e)
 {
     if (!allowed)
     {
         alert.Hide();
         alert2.Hide();
         Alert3.BringToFront();
         Alert3.Show();
     }
     else
     {
         alert.Hide();
         alert2.Hide();
         Alert3.Hide();
         SidePanel.Show();
         SidePanel.Height = button1.Height;
         SidePanel.Top    = button1.Top;
         firstCustomControl2.BringToFront();
     }
 }
Esempio n. 19
0
 public void Karakan4(Label obiekt1)
 {
     SidePanel.Show();
     SidePanel.Top    = obiekt1.Top;
     SidePanel.Height = obiekt1.Height;
 }
Esempio n. 20
0
 private void btnInfo_Click(object sender, EventArgs e)
 {
     SidePanel.Show();
     SidePanel.Hide();
     introductionFrame1.BringToFront();
 }