Ejemplo n.º 1
0
        public ProductEditTypeEdit(Type_products SelectProduct)
        {
            InitializeComponent();

            if (SelectProduct != null)
            {
                _currenttype = SelectProduct;
            }

            DataContext          = _currenttype;
            cmb_type.ItemsSource = electronic_shopEntities.GetContext().Type_electronic.ToList();
        }
Ejemplo n.º 2
0
        public MoreProduct(Type_products selectmanufacter)
        {
            InitializeComponent();

            if (selectmanufacter != null)
            {
                _currentprod = selectmanufacter.Products;
            }

            //electronic_shopEntities.GetContext().Products.FirstOrDefault(i => i.Manufacturers.name)

            DataContext = _currentprod;
        }