Changeset 3795 for trunk/sources/HeuristicLab.Problems.ArtificialAnt.Views
- Timestamp:
- 05/12/10 14:05:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ArtificialAnt.Views/3.3/AntTrailView.cs
r3566 r3795 53 53 protected override void OnContentChanged() { 54 54 base.OnContentChanged(); 55 if (Content == null) { 56 pictureBox.Image = null; 57 } else { 58 GenerateImage(); 59 } 55 this.playButton.Enabled = Content != null && !Locked; 56 GenerateImage(); 60 57 } 61 58 62 59 protected override void OnLockedChanged() { 63 this.playButton.Enabled = !Locked;60 this.playButton.Enabled = Content != null && !Locked; 64 61 base.OnLockedChanged(); 65 62 } … … 67 64 private void GenerateImage() { 68 65 animationTimer.Stop(); 66 pictureBox.Image = null; 69 67 if ((pictureBox.Width > 0) && (pictureBox.Height > 0)) { 70 if (Content == null) { 71 pictureBox.Image = null; 72 playButton.Enabled = false; 73 } else { 68 if (Content != null) { 74 69 var nodeStack = new Stack<SymbolicExpressionTreeNode>(); 75 70 int rows = Content.World.Rows;
Note: See TracChangeset
for help on using the changeset viewer.