Changeset 6878 for branches/GeneralizedQAP/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarView.cs
- Timestamp:
- 10/05/11 21:55:55 (13 years ago)
- Location:
- branches/GeneralizedQAP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP
- Property svn:ignore
-
old new 1 *.docstates 2 *.psess 1 3 *.resharper 2 4 *.suo 5 *.vsp 3 6 Google.ProtocolBuffers-0.9.1.dll 7 HeuristicLab 3.3.5.1.ReSharper.user 8 HeuristicLab 3.3.6.0.ReSharper.user 4 9 HeuristicLab.4.5.resharper.user 5 10 HeuristicLab.resharper.user … … 8 13 _ReSharper.HeuristicLab 9 14 _ReSharper.HeuristicLab 3.3 15 _ReSharper.HeuristicLab.ExtLibs 16 bin 10 17 protoc.exe 11 HeuristicLab 3.3.5.1.ReSharper.user 12 *.psess 13 *.vsp 14 *.docstates 18 HeuristicLab.ExtLibs.6.0.ReSharper.user
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4
- Property svn:ignore
-
old new 4 4 *.vs10x 5 5 HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.4.csproj.user 6 Plugin.cs
-
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarView.cs
r6233 r6878 30 30 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views { 31 31 [View("Symbolic Expression Grammar View")] 32 [Content(typeof(ISymbolicExpressionGrammar), true)]32 [Content(typeof(ISymbolicExpressionGrammar), false)] 33 33 public partial class SymbolicExpressionGrammarView : NamedItemView { 34 34 private CheckedItemList<ISymbol> symbols; … … 90 90 if (!(symbol is IReadOnlySymbol)) { 91 91 symbol.Changed += new EventHandler(symbol_Changed); 92 symbols.Add(symbol, symbol. InitialFrequency > 0.0);92 symbols.Add(symbol, symbol.Enabled); 93 93 } 94 94 } … … 101 101 private void symbol_Changed(object sender, EventArgs e) { 102 102 ISymbol symbol = (ISymbol)sender; 103 symbols.SetItemCheckedState(symbol, symbol. InitialFrequency > 0.0);103 symbols.SetItemCheckedState(symbol, symbol.Enabled); 104 104 } 105 105 106 106 private void symbols_CheckedItemsChanged(object sender, CollectionItemsChangedEventArgs<IndexedItem<ISymbol>> e) { 107 107 ICheckedItemList<ISymbol> checkedItemList = (ICheckedItemList<ISymbol>)sender; 108 foreach (var indexedItem in e.Items) { 109 if (checkedItemList.ItemChecked(indexedItem.Value)) { 110 indexedItem.Value.InitialFrequency = 1.0; 111 } else { 112 indexedItem.Value.InitialFrequency = 0.0; 113 } 114 } 108 foreach (var indexedItem in e.Items) 109 indexedItem.Value.Enabled = checkedItemList.ItemChecked(indexedItem.Value); 115 110 } 116 111 private void ClearSymbols() {
Note: See TracChangeset
for help on using the changeset viewer.