Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/15/15 16:39:12 (9 years ago)
Author:
gkronber
Message:

#2069: reviewing and minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode.Views/3.3/SolutionCodeView.cs

    r13011 r13013  
    2525using HeuristicLab.Core.Views;
    2626using HeuristicLab.MainForm;
    27 using HeuristicLab.Problems.GeneticProgramming.RoboCode;
     27using HeuristicLab.Problems.GeneticProgramming.Robocode;
    2828
    29 namespace HeuristicLab.Problems.GeneticProgramming.Views.RoboCode {
     29namespace HeuristicLab.Problems.GeneticProgramming.Views.Robocode {
    3030  [View("Robocode Tank Code View")]
    3131  [Content(typeof(Solution), IsDefaultView = true)]
     
    4545    protected override void OnContentChanged() {
    4646      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);
    5248    }
    5349
Note: See TracChangeset for help on using the changeset viewer.