Changeset 11238 for branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/DirectedGraph/Arc.cs
- Timestamp:
- 07/30/14 13:06:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/DirectedGraph/Arc.cs
r11229 r11238 31 31 [StorableClass] 32 32 public class Arc : Item, IArc { 33 public event EventHandler Changed;34 protected virtual void OnChanged(object sender, EventArgs args) {35 var changed = Changed;36 if (changed != null)37 changed(sender, args);38 }39 40 33 [Storable] 41 34 public IVertex Source { get; private set; } … … 49 42 get { return label; } 50 43 set { 44 if (label.Equals(value)) return; 51 45 label = value; 52 46 OnChanged(this, EventArgs.Empty); … … 59 53 get { return weight; } 60 54 set { 55 if (weight.Equals(value)) return; 61 56 weight = value; 62 57 OnChanged(this, EventArgs.Empty); … … 69 64 get { return data; } 70 65 set { 66 if (data == value) return; 71 67 data = value; 72 68 OnChanged(this, EventArgs.Empty); … … 94 90 return new Arc(this, cloner); 95 91 } 92 93 public event EventHandler Changed; 94 protected virtual void OnChanged(object sender, EventArgs args) { 95 var changed = Changed; 96 if (changed != null) 97 changed(sender, args); 98 } 96 99 } 97 100
Note: See TracChangeset
for help on using the changeset viewer.