Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/14/15 20:34:00 (8 years ago)
Author:
gkronber
Message:

#1966: docking of controls in (Cuboid|Rectangular)(PackingShape|PackingItem)View

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes/RectangularPackingItemView.cs

    r13464 r13466  
    4040      base.OnContentChanged();
    4141      if (Content == null) {
    42         Redraw();
     42        ClearState();
    4343      } else {
    44         Redraw(Content);
     44        UpdateState(Content);
    4545      }
    4646    }
    4747
    48     private void Redraw() {
     48    private void ClearState() {
    4949      packingPlan2D.InitializeContainer(0, 0);
    5050    }
    5151
    52     private void Redraw(RectangularPackingItem item) {
     52    private void UpdateState(RectangularPackingItem item) {
    5353      packingPlan2D.InitializeContainer(item.TargetBin.Width, item.TargetBin.Height);
    5454      packingPlan2D.AddItemToContainer(item.Width, item.Height, 0, 0, "0");
Note: See TracChangeset for help on using the changeset viewer.