- Timestamp:
- 06/07/13 15:35:12 (11 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/PackingPlans/PackingPlan3DView.cs
r9593 r9598 44 44 } else { 45 45 Content.Name = "Packing Plan"; 46 for (int i = 0; i < Content.NrOfBins; i++) 47 binSelection.Items.Add(i); 46 int i = 0; 47 foreach (var bp in Content.BinPackings) 48 binSelection.Items.Add(i++ + " (" + Math.Round(bp.PackingDensity * 100, 2) + "%)"); 49 48 50 binSelection.SelectedIndex = 0; 49 51 UpdateModel(); … … 53 55 54 56 private void UpdateModel() { 55 int currentBin = (binSelection != null && binSelection.SelectedItem != null) ? (int)(binSelection.SelectedItem) : 0;57 int currentBin = (binSelection != null) ? (int)(binSelection.SelectedIndex) : 0; 56 58 var bin = Content.BinPackings[currentBin].BinMeasures; 57 59 packingPlan3D.InitializeContainer(bin.Width, bin.Height, bin.Depth); … … 71 73 itemSelection.SelectedIndex = -1; 72 74 itemSelection.Items.Clear(); 73 int currentBin = (binSelection != null && binSelection.SelectedItem != null) ? (int)(binSelection.SelectedItem) : 0;75 int currentBin = (binSelection != null) ? (int)(binSelection.SelectedIndex) : 0; 74 76 //for (int i = 0; i < Content.PackingItemPositions.Count; i++) { 75 77 // if (Content.PackingItemPositions[i].AssignedBin == currentBin) … … 106 108 } else { 107 109 Content.Name = "Packing Plan"; 108 for (int i = 0; i < Content.NrOfBins; i++) 109 binSelection.Items.Add(i); 110 int i = 0; 111 foreach (var bp in Content.BinPackings) 112 binSelection.Items.Add(i++ + " (" + Math.Round(bp.PackingDensity * 100, 2) + "%)"); 110 113 binSelection.SelectedIndex = 0; 111 114 UpdateModel(); -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Plugin.cs
r9596 r9598 26 26 /// Plugin class for HeuristicLab.Problems.BinPacking.Views plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Problems.BinPacking.Views", "3.3.7.959 3")]28 [Plugin("HeuristicLab.Problems.BinPacking.Views", "3.3.7.9596")] 29 29 [PluginFile("HeuristicLab.Problems.BinPacking.Views-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Common", "3.3")] -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Properties/AssemblyInfo.cs
r9596 r9598 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3.7.959 3")]56 [assembly: AssemblyFileVersion("3.3.7.9596")]
Note: See TracChangeset
for help on using the changeset viewer.