Esempio n. 1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            DataAcces db = new DataAcces();

            List <ProductModel> products = new List <ProductModel>();

            products = db.GetShow(lenguageComboBox.Text);

            Lectura(products);
        }
Esempio n. 2
0
        private void lenguageComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            DataAcces db = new DataAcces();

            List <ProductModel> products = new List <ProductModel>();

            if (aviabelCheckBox.Checked == true)
            {
                listBoxProducts.Items.Clear();

                products = db.GetAviabel(lenguageComboBox.Text);

                Lectura(products);
            }
            else if (aviabelCheckBox.Checked == false)
            {
                listBoxProducts.Items.Clear();

                products = db.GetShow(lenguageComboBox.Text);

                Lectura(products);
            }
        }