Changeset 8206 for branches/GP-MoveOperators/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarEditorView.cs
- Timestamp:
- 07/03/12 16:46:35 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:mergeinfo changed
/trunk/sources merged: 8084,8088-8090,8092-8100,8102-8113,8115,8117-8132,8134-8146,8148-8156,8158-8160,8163-8170,8173-8176,8178-8190,8192-8205
- Property svn:mergeinfo changed
-
branches/GP-MoveOperators/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarEditorView.cs
r7581 r8206 164 164 } 165 165 166 private void symbolsTreeView_BeforeCheck(object sender, TreeViewCancelEventArgs e) { 167 if (e.Action == TreeViewAction.Unknown) return; 168 e.Cancel = Content == null || Content.ReadOnly || ReadOnly || Locked; 169 } 170 166 171 private void symbolsTreeView_AfterCheck(object sender, TreeViewEventArgs e) { 167 if (e.Action != TreeViewAction.Unknown) { 168 Content.StartGrammarManipulation(); 169 allowedChildSymbolsControl.Symbol = null; 170 var symbol = (ISymbol)e.Node.Tag; 171 symbol.Enabled = e.Node.Checked; 172 foreach (var node in IterateTreeNodes()) 173 node.Checked = ((ISymbol)node.Tag).Enabled; 174 175 Content.FinishedGrammarManipulation(); 176 } 177 } 178 179 private void symbolsTreeView_BeforeCheck(object sender, TreeViewCancelEventArgs e) { 180 if (Content == null || Content.ReadOnly) e.Cancel = true; 181 if (ReadOnly || Locked) e.Cancel = true; 172 if (e.Action == TreeViewAction.Unknown) return; 173 Content.StartGrammarManipulation(); 174 allowedChildSymbolsControl.Symbol = null; 175 var symbol = (ISymbol)e.Node.Tag; 176 symbol.Enabled = e.Node.Checked; 177 foreach (var node in IterateTreeNodes()) 178 node.Checked = ((ISymbol)node.Tag).Enabled; 179 180 Content.FinishedGrammarManipulation(); 182 181 } 183 182
Note: See TracChangeset
for help on using the changeset viewer.