using System; using System.Net; using System.Collections.Generic; using System.Data; using System.Windows.Forms; namespace Trigger.Events { /// /// An abstract class that every event plugin has to inherit from /// public abstract class EventPlugin { #region Events Delegates /// /// A simple Event without any special arguments /// /// /// public delegate void Event(object sender, EventArgs e); /// /// An event that also passes the new value /// /// /// /// public delegate void EventValue(object sender, EventArgsValue e); /// /// An event that passes both the old and the new value /// /// /// /// public delegate void EventValues(object sender, EventArgsValues e); /// /// The event that gives a reason why it occured /// /// /// /// public delegate void EventReason(object sender, EventArgsReason e); #endregion #region Methods /// /// Returns an with the supported events /// /// public abstract EventList EventNames(); /// /// Returns the current status of the /// /// public virtual TreeNode GetStatus() { return new TreeNode(this.GetType().Name); } #endregion } }