Changeset 13013 for branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode.Views/3.3/SolutionCodeView.cs
- Timestamp:
- 10/15/15 16:39:12 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode.Views/3.3/SolutionCodeView.cs
r13011 r13013 25 25 using HeuristicLab.Core.Views; 26 26 using HeuristicLab.MainForm; 27 using HeuristicLab.Problems.GeneticProgramming.Robo Code;27 using HeuristicLab.Problems.GeneticProgramming.Robocode; 28 28 29 namespace HeuristicLab.Problems.GeneticProgramming.Views.Robo Code {29 namespace HeuristicLab.Problems.GeneticProgramming.Views.Robocode { 30 30 [View("Robocode Tank Code View")] 31 31 [Content(typeof(Solution), IsDefaultView = true)] … … 45 45 protected override void OnContentChanged() { 46 46 base.OnContentChanged(); 47 if (Content == null) { 48 programCode.Text = string.Empty; 49 } else { 50 programCode.Text = Interpreter.InterpretProgramTree(Content.Tree.Root, programName); 51 } 47 programCode.Text = Content == null ? string.Empty : Interpreter.InterpretProgramTree(Content.Tree.Root, programName); 52 48 } 53 49
Note: See TracChangeset
for help on using the changeset viewer.