Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/14/10 01:57:07 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • replaced new EventArgs() by EventArgs.Empty
Location:
trunk/sources/HeuristicLab.Core/3.3
Files:
4 edited

Legend:

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

    r2790 r2793  
    242242    protected virtual void OnExecutionTimeChanged() {
    243243      if (ExecutionTimeChanged != null)
    244         ExecutionTimeChanged(this, new EventArgs());
     244        ExecutionTimeChanged(this, EventArgs.Empty);
    245245    }
    246246    /// <summary>
     
    253253    protected virtual void OnPrepared() {
    254254      if (Prepared != null)
    255         Prepared(this, new EventArgs());
     255        Prepared(this, EventArgs.Empty);
    256256    }
    257257    /// <summary>
     
    264264    protected virtual void OnStarted() {
    265265      if (Started != null)
    266         Started(this, new EventArgs());
     266        Started(this, EventArgs.Empty);
    267267    }
    268268    /// <summary>
     
    275275    protected virtual void OnStopped() {
    276276      if (Stopped != null)
    277         Stopped(this, new EventArgs());
     277        Stopped(this, EventArgs.Empty);
    278278    }
    279279    /// <summary>
  • trunk/sources/HeuristicLab.Core/3.3/NamedItem.cs

    r2790 r2793  
    131131    protected virtual void OnNameChanged() {
    132132      if (NameChanged != null)
    133         NameChanged(this, new EventArgs());
     133        NameChanged(this, EventArgs.Empty);
    134134      OnChanged();
    135135    }
     
    142142    protected virtual void OnDescriptionChanged() {
    143143      if (DescriptionChanged != null)
    144         DescriptionChanged(this, new EventArgs());
     144        DescriptionChanged(this, EventArgs.Empty);
    145145      OnChanged();
    146146    }
  • trunk/sources/HeuristicLab.Core/3.3/OperatorGraph.cs

    r2790 r2793  
    9797    protected virtual void OnInitialOperatorChanged() {
    9898      if (InitialOperatorChanged != null)
    99         InitialOperatorChanged(this, new EventArgs());
     99        InitialOperatorChanged(this, EventArgs.Empty);
    100100      OnChanged();
    101101    }
  • trunk/sources/HeuristicLab.Core/3.3/Variable.cs

    r2790 r2793  
    101101    private void OnValueChanged() {
    102102      if (ValueChanged != null)
    103         ValueChanged(this, new EventArgs());
     103        ValueChanged(this, EventArgs.Empty);
    104104      OnChanged();
    105105    }
Note: See TracChangeset for help on using the changeset viewer.