Changeset 11250


Ignore:
Timestamp:
07/31/14 10:10:21 (7 years ago)
Author:
mkommend
Message:

#2223: Adapted events signatures in the directed graph.

Location:
trunk/sources/HeuristicLab.Core/3.3
Files:
2 edited

Legend:

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

    r11249 r11250  
    143143
    144144    // events
    145     public event EventHandler VertexAdded;
     145    public event EventHandler<EventArgs<IVertex> VertexAdded;
    146146    protected virtual void OnVertedAdded(object sender, EventArgs<IVertex> args) {
    147147      var added = VertexAdded;
     
    150150    }
    151151
    152     public event EventHandler VertexRemoved;
     152    public event EventHandler<EventArgs<IVertex>> VertexRemoved;
    153153    protected virtual void OnVertexRemoved(object sender, EventArgs<IVertex> args) {
    154154      var removed = VertexRemoved;
     
    157157    }
    158158
    159     public event EventHandler ArcAdded;
     159    public event EventHandler<EventArgs<IArc>> ArcAdded;
    160160    protected virtual void OnArcAdded(object sender, EventArgs<IArc> args) {
    161161      var added = ArcAdded;
     
    164164    }
    165165
    166     public event EventHandler ArcRemoved;
     166    public event EventHandler<EventArgs<IArc>> ArcRemoved;
    167167    protected virtual void OnArcRemoved(object sender, EventArgs<IArc> args) {
    168168      var removed = ArcRemoved;
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IDirectedGraph.cs

    r11241 r11250  
    2222using System;
    2323using System.Collections.Generic;
     24using HeuristicLab.Common;
    2425
    2526namespace HeuristicLab.Core {
     
    3435    IEnumerable<IArc> Arcs { get; }
    3536
    36     event EventHandler VertexAdded;
    37     event EventHandler VertexRemoved;
    38     event EventHandler ArcAdded;
    39     event EventHandler ArcRemoved;
     37    event EventHandler<EventArgs<IVertex>> VertexAdded;
     38    event EventHandler<EventArgs<IVertex>> VertexRemoved;
     39    event EventHandler<EventArgs<IArc>> ArcAdded;
     40    event EventHandler<EventArgs<IArc>> ArcRemoved;
    4041  }
    4142}
Note: See TracChangeset for help on using the changeset viewer.