public SWContainerBuilder AddAddin(ISolidWorksAddin addin, ISWAddinCommand addinCommand, ICommandManager iCmdMgr) { this.RegisterInstance <ISolidWorksAddin>(addin).SingleInstance(); this.RegisterInstance <ICommandManager>(iCmdMgr).SingleInstance(); this.RegisterInstance <ISWAddinCommand>(addinCommand).SingleInstance(); return(this); }
public SWCMDGroupService(ISolidWorksAddin addin, ISWAddinCommand addinCommand, ICommandManager iCmdMgr, IStartup startup) { _addin = addin; this.iCmdMgr = iCmdMgr; _startup = startup; _addinCommand = addinCommand; if (_addinCommand.CommandInstances == null) { _addinCommand.CommandInstances = new Dictionary <string, object>(); } if (_addinCommand.CmdGroupIDs == null) { _addinCommand.CmdGroupIDs = new List <int>(); } iBmp = new BitmapHandler(); }