You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
42 lines
1.2 KiB
using Kingo.Plugin.BHTB_Extract.View; |
|
using Kingo.PluginServiceInterface; |
|
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
using UIShell.OSGi; |
|
|
|
namespace Kingo.Plugin.BHTB_Extract |
|
{ |
|
public class Activator : IBundleActivator |
|
{ |
|
IUcZYQMagrHelper _UcZYQMagr = null; |
|
IUcMulitMapControlHelper _ucMulitMap = null; |
|
public void Start(IBundleContext context) |
|
{ |
|
_UcZYQMagr = new UcZYQMagrHelper(); |
|
context.AddService<IUcZYQMagrHelper>(_UcZYQMagr); |
|
|
|
_ucMulitMap = new UcMulitMapControlHelper(); |
|
context.AddService<IUcMulitMapControlHelper>(_ucMulitMap); |
|
} |
|
|
|
public void Stop(IBundleContext context) |
|
{ |
|
_UcZYQMagr = context.GetFirstOrDefaultService<IUcZYQMagrHelper>(); |
|
if (_UcZYQMagr != null) |
|
{ |
|
context.RemoveService<IUcZYQMagrHelper>(_UcZYQMagr); |
|
} |
|
|
|
_ucMulitMap = context.GetFirstOrDefaultService<IUcMulitMapControlHelper>(); |
|
if (_ucMulitMap != null) |
|
{ |
|
context.RemoveService<IUcMulitMapControlHelper>(_ucMulitMap); |
|
} |
|
|
|
|
|
} |
|
} |
|
}
|
|
|