- Timestamp:
- 10/17/12 10:57:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Controller/Model/ControllerModel.cs
r8545 r8817 80 80 81 81 public override bool TrySetFromString(string input) { 82 var splitted = input.Split(':'); 83 int index; 82 var splitted = input.Split(':'); 83 int index; 84 84 if (splitted.Length != 2) 85 85 return false; … … 191 191 set { items = value; } 192 192 } 193 194 public Parameter FindByName(string name) { 195 foreach (var param in items) { 196 if (param.Value.Name == name) { 197 return param; 198 } 199 } 200 return null; 201 } 193 202 } 194 203 … … 202 211 set { items = value; } 203 212 } 213 214 public Parameter FindByName(string name) { 215 foreach (var param in items) { 216 if (param.Value.Name == name) { 217 return param; 218 } 219 } 220 return null; 221 } 204 222 } 205 223 … … 208 226 [DataMember] 209 227 public string Name { get; set; } 228 229 [DataMember] 230 public string ProblemType { get; set; } 231 232 [DataMember] 233 public string AlgorithmType { get; set; } 234 235 [DataMember] 236 public string MapperType { get; set; } 210 237 211 238 private InputParameters inputParams = new InputParameters();
Note: See TracChangeset
for help on using the changeset viewer.