Beispiel #1
0
        private void CbAreaVenta_SelectedIndexChanged(object sender, EventArgs e)
        {
            //Seccion de Libros
            if (CbAreaVenta.SelectedIndex == 0)
            {
                GroupLibros.Show();
                GroupLibros.Location = new Point(12, 72);

                GroupJuegosMesa.Hide();
                GroupTCG.Hide();
                GroupAnnetys.Hide();
                ComboboxCategoriaL();

                CheckClienteL.Checked = false;
                lblTextoClienteL.Hide();
                txtClienteL.Hide();

                CheckPinaL.Checked = false;
                lblPina.Hide();
                txtPina.Hide();
            }

            if (CbAreaVenta.SelectedIndex == 1)
            {
                GroupAnnetys.Show();
                GroupAnnetys.Location = new Point(12, 72);
                GroupJuegosMesa.Hide();
                GroupLibros.Hide();
                GroupTCG.Hide();
                CbCategoriaL.Items.Clear();
                CbNombreL.Items.Clear();
                CbEditorialL.Items.Clear();
            }
            if (CbAreaVenta.SelectedIndex == 2)
            {
                GroupTCG.Show();
                GroupTCG.Location = new Point(12, 72);
                GroupLibros.Hide();
                GroupJuegosMesa.Hide();
                GroupAnnetys.Hide();
                CbCategoriaL.Items.Clear();
                CbNombreL.Items.Clear();
                CbEditorialL.Items.Clear();
            }
            if (CbAreaVenta.SelectedIndex == 3)
            {
                GroupJuegosMesa.Show();
                GroupJuegosMesa.Location = new Point(12, 72);
                GroupTCG.Hide();
                GroupLibros.Hide();
                GroupAnnetys.Hide();
                CbCategoriaL.Items.Clear();
                CbNombreL.Items.Clear();
                CbEditorialL.Items.Clear();
            }
        }
Beispiel #2
0
        private void Venta_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dBplugYplayDataSet.Inventario' table. You can move, or remove it, as needed.
            this.inventarioTableAdapter.Fill(this.dBplugYplayDataSet.Inventario);


            GroupJuegosMesa.Hide();
            GroupLibros.Hide();
            GroupTCG.Hide();
            GroupAnnetys.Hide();

            lblFecha.Text    = DateTime.Today.Date.ToString("d");
            lblPrecioL.Text  = (0).ToString("C");
            lblPrecioA.Text  = (0).ToString("C");
            lblPrecioT.Text  = (0).ToString("C");
            lblPrecioJ.Text  = (0).ToString("C");
            lblPuntajeL.Text = (0).ToString("");
            lblPuntajeA.Text = (0).ToString("");
            lblPuntajeT.Text = (0).ToString("");
            lblPuntajeJ.Text = (0).ToString("");
        }