Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/22/12 15:03:32 (12 years ago)
Author:
bburlacu
Message:

#1763: Bugfixes and refactoring as suggested in the comments above.

Location:
branches/HeuristicLab.TreeSimplifier/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TreeSimplifier/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarEditorView.Designer.cs

    r7967 r8935  
    1 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views {
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views {
    223  partial class SymbolicExpressionGrammarEditorView {
    324    /// <summary>
  • branches/HeuristicLab.TreeSimplifier/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.cs

    r8388 r8935  
    157157    #region events
    158158    public event MouseEventHandler SymbolicExpressionTreeNodeClicked;
    159     protected void OnSymbolicExpressionTreeNodeClicked(object sender, MouseEventArgs e) {
     159    protected virtual void OnSymbolicExpressionTreeNodeClicked(object sender, MouseEventArgs e) {
    160160      var clicked = SymbolicExpressionTreeNodeClicked;
    161161      if (clicked != null)
     
    163163    }
    164164
    165     protected virtual void SymbolicExpressionTreeChart_MouseClick(object sender, MouseEventArgs e) {
     165    private void SymbolicExpressionTreeChart_MouseClick(object sender, MouseEventArgs e) {
    166166      VisualSymbolicExpressionTreeNode visualTreeNode = FindVisualSymbolicExpressionTreeNodeAt(e.X, e.Y);
    167167      if (visualTreeNode != null) {
     
    171171
    172172    public event MouseEventHandler SymbolicExpressionTreeNodeDoubleClicked;
    173     protected void OnSymbolicExpressionTreeNodeDoubleClicked(object sender, MouseEventArgs e) {
     173    protected virtual void OnSymbolicExpressionTreeNodeDoubleClicked(object sender, MouseEventArgs e) {
    174174      var doubleClicked = SymbolicExpressionTreeNodeDoubleClicked;
    175175      if (doubleClicked != null)
     
    184184
    185185    public event ItemDragEventHandler SymbolicExpressionTreeNodeDrag;
    186     protected void OnSymbolicExpressionTreeNodeDragDrag(object sender, ItemDragEventArgs e) {
     186    protected virtual void OnSymbolicExpressionTreeNodeDragDrag(object sender, ItemDragEventArgs e) {
    187187      var dragged = SymbolicExpressionTreeNodeDrag;
    188188      if (dragged != null)
Note: See TracChangeset for help on using the changeset viewer.