private void btnVentaTocuh_Click(object sender, EventArgs e)
        {
            FormVentaTouch ventaTouch = new FormVentaTouch();

            ventaTouch.ShowDialog();
        }
Example #2
0
        private void togglePanelMain(string panelName)
        {
            limpiarControles();
            switch (panelName)
            {
            case "clientes":
                if (uCClientes == null)
                {
                    this.uCClientes = new Admeli.Ventas.UCClientes(this.formPrincipal);
                    this.formPrincipal.panelMain.Controls.Add(uCClientes);
                    this.uCClientes.Dock     = System.Windows.Forms.DockStyle.Fill;
                    this.uCClientes.Location = new System.Drawing.Point(0, 0);
                    this.uCClientes.Name     = "uCClientes";
                    this.uCClientes.Size     = new System.Drawing.Size(250, 776);
                    this.uCClientes.TabIndex = 0;
                }
                else
                {
                    this.formPrincipal.panelMain.Controls.Add(uCClientes);
                    this.uCClientes.reLoad();
                }
                formPrincipal.lblTitlePage.Text = "Venta - Clientes";     /// Titulo en el encabezado
                break;

            case "contizacionCliente":
                if (uCCotizacionCliente == null)
                {
                    this.uCCotizacionCliente = new Admeli.Ventas.UCCotizacionCliente(this.formPrincipal);
                    this.formPrincipal.panelMain.Controls.Add(uCCotizacionCliente);
                    this.uCCotizacionCliente.Dock     = System.Windows.Forms.DockStyle.Fill;
                    this.uCCotizacionCliente.Location = new System.Drawing.Point(0, 0);
                    this.uCCotizacionCliente.Name     = "uCCotizacionCliente";
                    this.uCCotizacionCliente.Size     = new System.Drawing.Size(250, 776);
                    this.uCCotizacionCliente.TabIndex = 0;
                }
                else
                {
                    this.formPrincipal.panelMain.Controls.Add(uCCotizacionCliente);
                    this.uCCotizacionCliente.reLoad();
                }
                formPrincipal.lblTitlePage.Text = "Venta - Contizaciones cliente";     /// Titulo en el encabezado
                break;

            case "cuentaCobrar":
                if (uCCuentaCobrar == null)
                {
                    this.uCCuentaCobrar = new Admeli.Ventas.UCCuentaCobrar(this.formPrincipal);
                    this.formPrincipal.panelMain.Controls.Add(uCCuentaCobrar);
                    this.uCCuentaCobrar.Dock     = System.Windows.Forms.DockStyle.Fill;
                    this.uCCuentaCobrar.Location = new System.Drawing.Point(0, 0);
                    this.uCCuentaCobrar.Name     = "uCCuentaCobrar";
                    this.uCCuentaCobrar.Size     = new System.Drawing.Size(250, 776);
                    this.uCCuentaCobrar.TabIndex = 0;
                }
                else
                {
                    this.formPrincipal.panelMain.Controls.Add(uCCuentaCobrar);
                    this.uCCuentaCobrar.reLoad();
                }
                formPrincipal.lblTitlePage.Text = "Venta - Cuenta Cobrar";     /// Titulo en el encabezado
                break;

            case "ventas":
                if (uCVentas == null)
                {
                    this.uCVentas = new Admeli.Ventas.UCVentas(this.formPrincipal);
                    this.formPrincipal.panelMain.Controls.Add(uCVentas);
                    this.uCVentas.Dock     = System.Windows.Forms.DockStyle.Fill;
                    this.uCVentas.Location = new System.Drawing.Point(0, 0);
                    this.uCVentas.Name     = "uCVentas";
                    this.uCVentas.Size     = new System.Drawing.Size(250, 776);
                    this.uCVentas.TabIndex = 0;
                }
                else
                {
                    this.formPrincipal.panelMain.Controls.Add(uCVentas);
                    this.uCVentas.reLoad();
                }
                formPrincipal.lblTitlePage.Text = "Venta - Ventas";     /// Titulo en el encabezado
                break;

            case "ventaTouch":
                FormVentaTouch ventaTouch = new FormVentaTouch();
                ventaTouch.ShowDialog();
                break;

            default:
                break;
            }
        }