Changeset 13691 for trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation
- Timestamp:
- 03/11/16 15:29:05 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBProblem.cs
r13684 r13691 29 29 using System.Drawing; 30 30 using System.IO; 31 using System.Linq; 31 32 32 33 namespace HeuristicLab.Clients.OKB.RunCreation { … … 63 64 OnOperatorsChanged(); 64 65 OnReset(); 66 67 solutions.Clear(); 65 68 } 66 69 } 67 70 } 71 } 72 73 [Storable] 74 private ItemList<OKBSolution> solutions; 75 public ItemList<OKBSolution> Solutions { 76 get { return solutions; } 68 77 } 69 78 … … 135 144 problemId = original.problemId; 136 145 problem = cloner.Clone(original.problem); 146 solutions = cloner.Clone(original.solutions); 137 147 RegisterProblemEvents(); 138 148 } … … 142 152 problemId = -1; 143 153 problem = initialProblem; 154 solutions = new ItemList<OKBSolution>(); 144 155 RegisterProblemEvents(); 145 156 } … … 159 170 } 160 171 172 public void RefreshSolutions() { 173 Solutions.Clear(); 174 if (ProblemId != -1) { 175 Solutions.AddRange(RunCreationClient.Instance.GetSolutions(ProblemId).Select(OKBSolution.Convert)); 176 } 177 } 178 161 179 public IProblem CloneProblem() { 162 180 return (IProblem)Problem.Clone();
Note: See TracChangeset
for help on using the changeset viewer.