Exemplo n.º 1
0
        private void Btn_ropa_Click(object sender, RoutedEventArgs e)
        {
            Producto pro = new MisOfertas.Negocio.Producto();

            lboxProductosConsu.ItemsSource = pro.ListaFiltrada(4);
            lboxProductosConsu.Items.Refresh();
        }
Exemplo n.º 2
0
        private void Btn_todos_Click(object sender, RoutedEventArgs e)
        {
            Producto pro = new MisOfertas.Negocio.Producto();

            lboxProductos.ItemsSource = pro.ListaProductos();
            lboxProductos.Items.Refresh();
        }
Exemplo n.º 3
0
        public MainWindow()
        {
            InitializeComponent();

            MisOfertas.Negocio.Producto pro  = new MisOfertas.Negocio.Producto();
            MisOfertas.Negocio.Oferta   Ofer = new MisOfertas.Negocio.Oferta();

            lboxProductos.ItemsSource = pro.ListaProductos();
            lboxOfertas.ItemsSource   = Ofer.ListaOferta();
        }
Exemplo n.º 4
0
        private void Cb_rubro_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            MisOfertas.Negocio.Producto pro = new MisOfertas.Negocio.Producto();

            if (cb_rubro.SelectedIndex == 0)
            {
                lboxProductos.ItemsSource = pro.ListaProductos();
                lboxProductos.Items.Refresh();
            }
            else
            {
                lboxProductos.ItemsSource = pro.ListaFiltrada(cb_rubro.SelectedIndex);
                lboxProductos.Items.Refresh();
            }
        }