Changeset 13466 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes/RectangularPackingItemView.cs
- Timestamp:
- 12/14/15 20:34:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes/RectangularPackingItemView.cs
r13464 r13466 40 40 base.OnContentChanged(); 41 41 if (Content == null) { 42 Redraw();42 ClearState(); 43 43 } else { 44 Redraw(Content);44 UpdateState(Content); 45 45 } 46 46 } 47 47 48 private void Redraw() {48 private void ClearState() { 49 49 packingPlan2D.InitializeContainer(0, 0); 50 50 } 51 51 52 private void Redraw(RectangularPackingItem item) {52 private void UpdateState(RectangularPackingItem item) { 53 53 packingPlan2D.InitializeContainer(item.TargetBin.Width, item.TargetBin.Height); 54 54 packingPlan2D.AddItemToContainer(item.Width, item.Height, 0, 0, "0");
Note: See TracChangeset
for help on using the changeset viewer.