Changeset 11349 for branches/HeuristicLab.EvolutionTracking
- Timestamp:
- 09/06/14 11:58:15 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicExpressionTreeChart.cs
r11208 r11349 91 91 } 92 92 93 94 private static readonly ISymbolicExpressionGrammar grammar = new TypeCoherentExpressionGrammar(); 93 95 private void insertNodeToolStripMenuItem_Click(object sender, EventArgs e) { 94 96 if (currSelected == null || currSelected.Content is SymbolicExpressionTreeTerminalNode) return; … … 96 98 97 99 using (var dialog = new InsertNodeDialog()) { 98 dialog.SetAllowedSymbols( parent.Grammar.Symbols.Where(s => !(s is ProgramRootSymbol || s is StartSymbol || s is Defun || s is GroupSymbol))); // allow everything100 dialog.SetAllowedSymbols(grammar.Symbols.Where(s => !(s is ProgramRootSymbol || s is StartSymbol || s is Defun || s is GroupSymbol))); // allow everything 99 101 dialog.ShowDialog(this); 100 102 if (dialog.DialogResult != DialogResult.OK) return; -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/RunCollectionVariableImpactView.cs
r11208 r11349 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.ComponentModel; 24 25 using System.Drawing; 25 26 using System.Linq; … … 66 67 private void RegisterRunEvents(IEnumerable<IRun> runs) { 67 68 foreach (IRun run in runs) 68 run. Changed += Run_Changed;69 run.PropertyChanged += Run_PropertyChanged; 69 70 } 70 71 private void DeregisterRunEvents(IEnumerable<IRun> runs) { 71 72 foreach (IRun run in runs) 72 run. Changed -= Run_Changed;73 run.PropertyChanged -= Run_PropertyChanged; 73 74 } 74 75 private void Content_ItemsAdded(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) { … … 88 89 if (!Content.UpdateOfRunsInProgress) UpdateData(); 89 90 } 90 private void Run_Changed(object sender, EventArgs e) { 91 if (!Content.UpdateOfRunsInProgress) UpdateData(); 91 private void Run_PropertyChanged(object sender, PropertyChangedEventArgs e) { 92 if (!Content.UpdateOfRunsInProgress && e.PropertyName == "Visible") 93 UpdateData(); 92 94 } 93 95 #endregion
Note: See TracChangeset
for help on using the changeset viewer.