Esempio n. 1
0
 void plugin_Closing(object sender, Framework.EventArguments.PluginEventArgs e)
 {
     if (_plugins.Contains(e.Plugin))
     {
         _plugins.Remove(e.Plugin);
     }
 }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
        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++;
             *  }
             * }
             * */
        }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 void plugin_Closing(object sender, Framework.EventArguments.PluginEventArgs e)
 {
     Core.SelectedLanguageChanged -= new EventHandler(core_SelectedLanguageChanged);
 }
Esempio n. 6
0
 async void _core_PluginAdded(object sender, Framework.EventArguments.PluginEventArgs e)
 {
     await PluginAddedAsync(e.Plugin);
 }