using Kingo.Plugin.XZQ_IDG.Helper; using Kingo.PluginServiceInterface; using UIShell.OSGi; namespace Kingo.Plugin.XZQ_IDG { public class Activator : IBundleActivator { XZQ_IDGHelper xZQ_IDGHelper = new XZQ_IDGHelper(); public void Start(IBundleContext context) { BundleRuntime.Instance.AddService(xZQ_IDGHelper); } public void Stop(IBundleContext context) { if (xZQ_IDGHelper != null) { BundleRuntime.Instance.AddService(xZQ_IDGHelper); } } } }