using System; using System.Windows.Forms; namespace Trigger.Tasks { abstract class TaskPlugin : IDisposable { #region Properties #endregion #region Override Methods /// /// Registers the event /// /// The form public abstract bool Init(Main Main); /// /// Registers the event and should take care to only measure the time it is taking for it's own initialization /// /// The form /// /// should be stopped before loading an event and continued afterwards. public virtual bool Init(Main Main, System.Diagnostics.Stopwatch swInit) { return Init(Main); } /// /// Unregisters all events so the task can be unloaded /// public abstract void Dispose(); /// /// Gets the current status of this /// It may give some status information or only the name /// /// public virtual TreeNode GetStatus(TreeView tv) { return new TreeNode(this.GetType().Name); } #endregion } }