Beispiel #1
0
        private void WarehouseResetButton_Click(object sender, RoutedEventArgs e)
        {
            var grid      = _mainWindow.LinearGrid.IsVisible;
            var warehouse =
                AdditionalMethods.ParseCustomWarehouse(WarehouseTextBox.Text, ";", !grid);

            if (grid)
            {
                _mainWindow.LinearWarehouse            = warehouse;
                _mainWindow.LinearDataGrid.ItemsSource = _mainWindow.LinearWarehouse.WarehouseSlots;
            }

            else
            {
                _mainWindow.RotatingWarehouse            = warehouse;
                _mainWindow.RotatingDataGrid.ItemsSource = _mainWindow.RotatingWarehouse.WarehouseSlots;
            }
        }