Beispiel #1
0
        private void UpdateState(PackingPlan <BinPacking2D.PackingPosition, PackingShape, PackingItem> plan)
        {
            int currentBin = (binSelection != null && binSelection.SelectedItem != null) ? (int)(binSelection.SelectedItem) : 0;

            container2DView.Packing = plan.Bins[currentBin];
        }
 private void UpdateState(PackingPlan<BinPacking2D.PackingPosition, PackingShape, PackingItem> plan) {
   int currentBin = (binSelection != null && binSelection.SelectedItem != null) ? (int)(binSelection.SelectedItem) : 0;
   container2DView.Packing = plan.Bins[currentBin];
 }