Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/06/14 11:58:15 (10 years ago)
Author:
bburlacu
Message:

#1772: Merged trunk changes for HeuristicLab.Problems.DataAnalysis.Symbolic.Views.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicExpressionTreeChart.cs

    r11208 r11349  
    9191    }
    9292
     93
     94    private static readonly ISymbolicExpressionGrammar grammar = new TypeCoherentExpressionGrammar();
    9395    private void insertNodeToolStripMenuItem_Click(object sender, EventArgs e) {
    9496      if (currSelected == null || currSelected.Content is SymbolicExpressionTreeTerminalNode) return;
     
    9698
    9799      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 everything
     100        dialog.SetAllowedSymbols(grammar.Symbols.Where(s => !(s is ProgramRootSymbol || s is StartSymbol || s is Defun || s is GroupSymbol))); // allow everything
    99101        dialog.ShowDialog(this);
    100102        if (dialog.DialogResult != DialogResult.OK) return;
Note: See TracChangeset for help on using the changeset viewer.