public InventoryEditorWindow(InventoryManager inventoryManagement)
 {
     InitializeComponent();
     inv = inventoryControl;
     inv.vm = new InventoryManager(inventoryManagement.AppManager);
     inv.dataGrid.IsReadOnly = false;
 }
 public InventoryManagementWindow(InventoryManager inventoryManagement)
 {
     InitializeComponent();
     inv = inventoryControl;
     inv.vm = inventoryManagement;
     DataContext = inv.vm;
 }