public NewEquipInInvent(MaterialInInventarization SelectedMatInInent) { InitializeComponent(); if (SelectedMatInInent != null) { _currentMatInInvent = SelectedMatInInent; } DataContext = _currentMatInInvent; }
public NewEquipInInvent(MaterialInInventarization SelectedMatInInent) { InitializeComponent(); if (SelectedMatInInent != null) { _currentMatInInvent = SelectedMatInInent; } DataContext = _currentMatInInvent; DelCmb.ItemsSource = AccountingForConsumablesEntities.GetContext().Inventarization.ToList(); MatCmb.ItemsSource = AccountingForConsumablesEntities.GetContext().Materials.ToList(); }