Changeset 14777 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Views/ExpressionSelectionView.cs
- Timestamp:
- 03/23/17 01:11:18 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Views/ExpressionSelectionView.cs
r14747 r14777 43 43 44 44 private void ExpressionsTreeViewAfterCheck(object sender, TreeViewEventArgs e) { 45 var isStackNode = e.Node.Tag is StackType ;45 var isStackNode = e.Node.Tag is StackTypes; 46 46 47 47 if (isStackNode) { 48 48 if (e.Node.Checked) { 49 Content.EnableStack((StackType )e.Node.Tag);49 Content.EnableStack((StackTypes)e.Node.Tag); 50 50 foreach (var subNode in e.Node.Nodes.Cast<TreeNode>()) 51 51 subNode.Checked = true; 52 52 } else { 53 Content.DisableStack((StackType )e.Node.Tag);53 Content.DisableStack((StackTypes)e.Node.Tag); 54 54 foreach (var subNode in e.Node.Nodes.Cast<TreeNode>()) 55 55 subNode.Checked = false; … … 71 71 } 72 72 73 this.nameTextBox.Text = "Push Expression Selection"; 74 73 75 var treeNodes = GetTreeNodes(Content.EnabledExpressions).ToArray(); 74 76 expressionsTreeView.Nodes.AddRange(treeNodes); … … 79 81 var stackTreeNode = new TreeNode { 80 82 Tag = stackType, 81 Text = Enum.GetName(typeof(StackType ), stackType),83 Text = Enum.GetName(typeof(StackTypes), stackType), 82 84 }; 83 85
Note: See TracChangeset
for help on using the changeset viewer.