Changeset 2353
- Timestamp:
- 11/7/2011 3:50:06 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/pluginsRewrite/Eraser.Plugins/Host.cs
r2298 r2353 43 43 protected virtual void Dispose(bool disposing) 44 44 { 45 if (disposing) 46 { 47 Instance = null; 48 } 45 49 } 46 50 … … 99 103 /// </summary> 100 104 public abstract void Load(); 101 102 /// <summary>103 /// The plugin load event, allowing clients to decide whether to load104 /// the given plugin.105 /// </summary>106 public EventHandler<PluginLoadEventArgs> PluginLoad { get; set; }107 108 /// <summary>109 /// The plugin loaded event.110 /// </summary>111 public EventHandler<PluginLoadedEventArgs> PluginLoaded { get; set; }112 113 /// <summary>114 /// Event callback executor for the OnPluginLoad event.115 /// </summary>116 /// <param name="sender"></param>117 /// <param name="e"></param>118 internal void OnPluginLoad(object sender, PluginLoadEventArgs e)119 {120 if (PluginLoad != null)121 PluginLoad(sender, e);122 }123 124 /// <summary>125 /// Event callback executor for the OnPluginLoaded vent126 /// </summary>127 internal void OnPluginLoaded(object sender, PluginLoadedEventArgs e)128 {129 if (PluginLoaded != null)130 PluginLoaded(sender, e);131 }132 105 133 106 /// <summary> … … 140 113 /// and return True.</remarks> 141 114 public abstract bool LoadPlugin(string filePath); 115 116 /// <summary> 117 /// The plugin load event, allowing clients to decide whether to load 118 /// the given plugin. 119 /// </summary> 120 public EventHandler<PluginLoadEventArgs> PluginLoad { get; set; } 121 122 /// <summary> 123 /// The plugin loaded event. 124 /// </summary> 125 public EventHandler<PluginLoadedEventArgs> PluginLoaded { get; set; } 126 127 /// <summary> 128 /// Event callback executor for the OnPluginLoad event. 129 /// </summary> 130 /// <param name="sender"></param> 131 /// <param name="e"></param> 132 internal void OnPluginLoad(object sender, PluginLoadEventArgs e) 133 { 134 if (PluginLoad != null) 135 PluginLoad(sender, e); 136 } 137 138 /// <summary> 139 /// Event callback executor for the OnPluginLoaded vent 140 /// </summary> 141 internal void OnPluginLoaded(object sender, PluginLoadedEventArgs e) 142 { 143 if (PluginLoaded != null) 144 PluginLoaded(sender, e); 145 } 142 146 } 143 147
Note: See TracChangeset
for help on using the changeset viewer.
