public static MainToolCommand Init(IPkg pkg, IEventLevel evt) { if (Instance != null) { return(Instance); } Instance = new MainToolCommand ( pkg, pkg.getSvc(typeof(IMenuCommandService)) as OleMenuCommandService, evt ); return(Instance); }
/// <param name="pkg">Owner package.</param> /// <param name="evt">Supported public events, not null.</param> public static StatusToolCommand Init(IPkg pkg, IEventLevel evt) { if(Instance != null) { return Instance; } Instance = new StatusToolCommand ( pkg, pkg.getSvc(typeof(IMenuCommandService)) as OleMenuCommandService, evt ); Instance.toolPane = Instance.initToolPane(); return Instance; }