- wpfgraph.zip
- bin
- de
- Palmmedia.WpfGraph.UI.resources.dll
- log4net.dll
- Microsoft.Practices.ObjectBuilder2.dll
- Microsoft.Practices.Unity.Configuration.dll
- Microsoft.Practices.Unity.dll
- Palmmedia.WpfGraph.Core.dll
- Palmmedia.WpfGraph.UI.exe
- Palmmedia.WpfGraph.UI.exe.config
- WPFLocalizeExtension.dll
- doc
- Documentation.chm
- LICENSE.txt
- Readme.txt
- src
- _Icons
- ProgrammIcon
- 128.png
- 16.png
- 24.png
- 32.png
- 48.png
- 64.png
- Vorlage.png
- lib
- log4net
- MSXSL
- msxsl.exe
- PartCover
- ReportGenerator
- StyleCop
- v4.3
- Docs
- StyleCop.chm
- Microsoft.SourceAnalysis.Targets
- Microsoft.StyleCop.CSharp.dll
- Microsoft.StyleCop.CSharp.Rules.dll
- Microsoft.StyleCop.dll
- Microsoft.StyleCop.Targets
- Settings.StyleCop
- StyleCopSettingsEditor.exe
- Unity
- License.txt
- Microsoft.Practices.ObjectBuilder2.dll
- Microsoft.Practices.Unity.Configuration.dll
- Microsoft.Practices.Unity.dll
- WPFLocalizeExtension
- LICENSE.txt
- LocalTestRun.testrunconfig
- Readme.txt
- WpfGraph.Core
- WpfGraph.CoreTest
- WpfGraph.sln
- WpfGraph.Ui
- WpfGraph.vsmdi
|
using System;
namespace Palmmedia.WpfGraph.Core
{
/// <summary>
/// Base class for all <see cref="IGraph<TNodeType, TEdgeType>"/> implementations.
/// </summary>
/// <typeparam name="TNodeType">The type of the data attached to a <see cref="Palmmedia.WpfGraph.Core.Node<TNodeType, TEdgeType>"/>.</typeparam>
/// <typeparam name="TEdgeType">The type of the data attached to an <see cref="Palmmedia.WpfGraph.Core.Edge<TNodeType, TEdgeType>"/>.</typeparam>
public abstract class GraphBase<TNodeType, TEdgeType>
{
/// <summary>
/// Occurs after an <see cref="Edge<TNodeType, TEdgeType>"/> has been added.
/// </summary>
public event EventHandler<EdgeEventArgs<TNodeType, TEdgeType>> EdgeAdded;
/// <summary>
/// Occurs after an <see cref="Node<TNodeType, TEdgeType>"/> has been added.
/// </summary>
public event EventHandler<NodeEventArgs<TNodeType, TEdgeType>> NodeAdded;
/// <summary>
/// Occurs after an <see cref="Edge<TNodeType, TEdgeType>"/> has been removed.
/// </summary>
public event EventHandler<EdgeEventArgs<TNodeType, TEdgeType>> EdgeRemoved;
/// <summary>
/// Occurs after an <see cref="Node<TNodeType, TEdgeType>"/> has been removed.
/// </summary>
public event EventHandler<NodeEventArgs<TNodeType, TEdgeType>> NodeRemoved;
/// <summary>
/// Raises the <see cref="E:EdgeAdded"/> event.
/// </summary>
/// <param name="args">The <see cref="Palmmedia.WpfGraph.Core.EdgeEventArgs<TNodeType,TEdgeType>"/> instance containing the event data.</param>
protected virtual void OnEdgeAdded(EdgeEventArgs<TNodeType, TEdgeType> args)
{
if (this.EdgeAdded != null)
{
this.EdgeAdded(this, args);
}
}
/// <summary>
/// Raises the <see cref="E:NodeAdded"/> event.
/// </summary>
/// <param name="args">The <see cref="Palmmedia.WpfGraph.Core.NodeEventArgs<TNodeType,TEdgeType>"/> instance containing the event data.</param>
protected virtual void OnNodeAdded(NodeEventArgs<TNodeType, TEdgeType> args)
{
if (this.NodeAdded != null)
{
this.NodeAdded(this, args);
}
}
/// <summary>
/// Raises the <see cref="E:EdgeRemoved"/> event.
/// </summary>
/// <param name="args">The <see cref="Palmmedia.WpfGraph.Core.EdgeEventArgs<TNodeType,TEdgeType>"/> instance containing the event data.</param>
protected virtual void OnEdgeRemoved(EdgeEventArgs<TNodeType, TEdgeType> args)
{
if (this.EdgeRemoved != null)
{
this.EdgeRemoved(this, args);
}
}
/// <summary>
/// Raises the <see cref="E:NodeRemoved"/> event.
/// </summary>
/// <param name="args">The <see cref="Palmmedia.WpfGraph.Core.NodeEventArgs<TNodeType,TEdgeType>"/> instance containing the event data.</param>
protected virtual void OnNodeRemoved(NodeEventArgs<TNodeType, TEdgeType> args)
{
if (this.NodeRemoved != null)
{
this.NodeRemoved(this, args);
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.