void plugin_Closing(object sender, Framework.EventArguments.PluginEventArgs e) { if (_plugins.Contains(e.Plugin)) { _plugins.Remove(e.Plugin); } }
void core_PluginAdded(object sender, Framework.EventArguments.PluginEventArgs e) { if (e.Plugin.PluginType == Framework.PluginType.LanguageSupport) { LanguageSupport.Instance.UpdateLanguageSupportPlugins(Core); } else if (e.Plugin.PluginType == Framework.PluginType.ImageResource) { Utils.ImageSupport.Instance.UpdateImageSupportPlugins(Core); } else if (e.Plugin.PluginType == Framework.PluginType.Geometry) { Utils.GeometrySupport.Instance.UpdateGeometrySupportPlugins(Core); } }
void plugin_Closing(object sender, Framework.EventArguments.PluginEventArgs e) { //plugins are not removed during running, so why bother /* * for (int i = 0; i < _pluginActionList.Count; i++) * { * if (_pluginActionList[i].plugin == e.Plugin) * { * RemovePluginAction(_pluginActionList[i]); * _pluginActionList.RemoveAt(i); * } * else * { * i++; * } * } * */ }
void core_PluginAdded(object sender, Framework.EventArguments.PluginEventArgs e) { e.Plugin.EndProgress += new Framework.EventArguments.ProgressEventHandler(p_EndProgress); e.Plugin.StartProgress += new Framework.EventArguments.ProgressEventHandler(p_StartProgress); e.Plugin.UpdateProgress += new Framework.EventArguments.ProgressEventHandler(p_UpdateProgress); }
void plugin_Closing(object sender, Framework.EventArguments.PluginEventArgs e) { Core.SelectedLanguageChanged -= new EventHandler(core_SelectedLanguageChanged); }
async void _core_PluginAdded(object sender, Framework.EventArguments.PluginEventArgs e) { await PluginAddedAsync(e.Plugin); }