Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11330


Ignore:
Timestamp:
09/02/14 14:46:46 (10 years ago)
Author:
mkommend
Message:

#2238: Removed unnecessary name changes event registration for result in DataAnalysisSolutions.

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Collections/NamedItemCollection.cs

    r11171 r11330  
    7575    }
    7676
    77     protected void RegisterItemEvents(IEnumerable<T> items) {
     77    protected virtual void RegisterItemEvents(IEnumerable<T> items) {
    7878      foreach (T item in items) {
    7979        if (item != null) {
     
    8383      }
    8484    }
    85     private void DeregisterItemEvents(IEnumerable<T> items) {
     85    protected virtual void DeregisterItemEvents(IEnumerable<T> items) {
    8686      foreach (T item in items) {
    8787        if (item != null) {
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisSolution.cs

    r11171 r11330  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Drawing;
    2425using HeuristicLab.Common;
     
    106107    }
    107108
     109    //mkommend avoid unnecessary event registration for result name changes
     110    protected override void RegisterItemEvents(IEnumerable<IResult> items) { }
     111    protected override void DeregisterItemEvents(IEnumerable<IResult> items) { }
     112
    108113    #region INamedItem Members
    109114    [Storable]
Note: See TracChangeset for help on using the changeset viewer.