Exemple #1
0
 public PluginManager(Plugins p)
 {
     plugins = p;
       InitializeComponent();
 }
Exemple #2
0
 void plugins_PluginIncompatible(Plugins sender, IPlugin plugin)
 {
     mainlogger.Error(string.Format("Plugin {0} is incompatible with the current interface version {1}",
     plugin.Name,
     Plugins.InterfaceVersion.ToString()
     ));
 }
Exemple #3
0
 void plugins_PluginLoaded(Plugins who, IPlugin plugin)
 {
     mainlogger.Info(string.Format("Plugin loaded: {0}, version: {1}",
     plugin.Name,
     plugin.Version.ToString()
     ));
 }
Exemple #4
0
 void plugins_AssemblyLoaded(Plugins who, System.Reflection.Assembly assembly)
 {
     mainlogger.Info(string.Format("Assembly loaded: {0}, trusted: {1}, version: {2}",
     assembly.FullName,
     (assembly.IsFullyTrusted ? "Yes" : "No"),
     assembly.ImageRuntimeVersion.ToString()
     ));
 }