Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/21/16 21:07:27 (8 years ago)
Author:
gkronber
Message:

#2641:

  • fixed persistence bug
  • added unit test to create BPP sample
  • added BPP sample to start page
  • renaming of properties
Location:
trunk/sources/HeuristicLab.Problems.BinPacking.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.BinPacking.Views/3.3/PackingPlan2DView.cs

    r14162 r14167  
    5757    private void UpdateState(PackingPlan<BinPacking2D.PackingPosition, PackingShape, PackingItem> plan) {
    5858      int currentBin = (binSelection != null && binSelection.SelectedItem != null) ? (int)(binSelection.SelectedItem) : 0;
    59       container2DView.Packing = plan.BinPackings[currentBin];
     59      container2DView.Packing = plan.Bins[currentBin];
    6060    }
    6161
  • trunk/sources/HeuristicLab.Problems.BinPacking.Views/3.3/PackingPlan3DView.cs

    r14162 r14167  
    4747      } else {
    4848        int i = 0;
    49         foreach (var bp in Content.BinPackings)
     49        foreach (var bp in Content.Bins)
    5050          binSelection.Items.Add(i++ + " (" + Math.Round(bp.PackingDensity * 100, 2) + "%)");
    5151
     
    5757    private void ShowSelectedPacking() {
    5858      int currentBin = (binSelection != null) ? (int)(binSelection.SelectedIndex) : 0;
    59       packingPlan3D.Packing = Content.BinPackings[currentBin];
     59      packingPlan3D.Packing = Content.Bins[currentBin];
    6060    }
    6161
     
    6666      // add items of this container
    6767      int currentBin = (binSelection != null) ? (int)(binSelection.SelectedIndex) : 0;
    68       var packing = Content.BinPackings[currentBin];
     68      var packing = Content.Bins[currentBin];
    6969      foreach (var item in packing.Items) {
    7070        itemSelection.Items.Add(item.Key);
Note: See TracChangeset for help on using the changeset viewer.