- Timestamp:
- 04/26/10 18:58:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Knapsack.Views/3.3/KnapsackSolutionView.cs
r3467 r3537 154 154 //draw knapsack 155 155 graphics.DrawRectangle(Pens.Black, 156 borderX - 1, borderY- 1, width + 2, knapsackHeight + 2);156 borderX - 1, pictureBox.Height - borderY - knapsackHeight - 1, width + 2, knapsackHeight + 2); 157 157 158 158 //draw items sorted by value … … 180 180 double weight = Content.Weights[i]; 181 181 double factor = weight / capacity; 182 int elementHeight = (int)Math. Round(height * factor);182 int elementHeight = (int)Math.Floor(knapsackHeight * factor); 183 183 184 184 double value = Content.Values[i];
Note: See TracChangeset
for help on using the changeset viewer.