private void SetMachineCapacity(int anzahl)
 {
     if (grid.selectedItems.Count > 0)
     {
         csu.SetMachineCapacity(anzahl, grid.selectedItems.Select(item => item.instanceId).ToArray());
     }
 }