public ProductEditTypeEdit(Type_products SelectProduct) { InitializeComponent(); if (SelectProduct != null) { _currenttype = SelectProduct; } DataContext = _currenttype; cmb_type.ItemsSource = electronic_shopEntities.GetContext().Type_electronic.ToList(); }
public MoreProduct(Type_products selectmanufacter) { InitializeComponent(); if (selectmanufacter != null) { _currentprod = selectmanufacter.Products; } //electronic_shopEntities.GetContext().Products.FirstOrDefault(i => i.Manufacturers.name) DataContext = _currentprod; }