Changeset 11900 for branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/SingleObjectiveProgrammableProblem.cs
- Timestamp:
- 02/05/15 10:19:37 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/SingleObjectiveProgrammableProblem.cs
r11885 r11900 49 49 : base(original, cloner) { 50 50 RegisterEvents(); 51 try {52 ProblemScript.Compile();53 } catch (ProblemDefinitionScriptException e) {54 PluginInfrastructure.ErrorHandling.ShowErrorDialog(e);55 }56 51 } 57 52 public override IDeepCloneable Clone(Cloner cloner) { return new SingleObjectiveProgrammableProblem(this, cloner); } 58 53 59 60 54 [StorableConstructor] 61 55 private SingleObjectiveProgrammableProblem(bool deserializing) : base(deserializing) { } 62 63 56 public SingleObjectiveProgrammableProblem() 64 57 : base() { 65 58 Parameters.Add(new FixedValueParameter<SingleObjectiveProblemDefinitionScript>("ProblemScript", "Defines the problem.", new SingleObjectiveProblemDefinitionScript() { Name = Name })); 66 59 RegisterEvents(); 67 68 69 60 } 70 61 … … 72 63 private void AfterDeserialization() { 73 64 RegisterEvents(); 74 try {75 ProblemScript.Compile();76 } catch (InvalidOperationException) {77 //Compilation error78 }79 65 } 80 66
Note: See TracChangeset
for help on using the changeset viewer.