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