/// <summary> /// Method which is invoked from the Add-In framework and is used to programmatically control whether to load the Add-In. /// </summary> /// <param name="GlobalContext">The Global Context for the Add-In framework.</param> /// <returns>If true the Add-In to be loaded, if false the Add-In will not be loaded.</returns> public bool Initialize(IGlobalContext GlobalContext) { _gContext = GlobalContext; ConfigurationSetting.logAssemblyVersion(Assembly.GetAssembly(typeof(BulkImportViewModel)), null); ConfigurationSetting instance = ConfigurationSetting.Instance(_gContext); /* log it, but return true because will show the messagebox when the addin is opened in createControl. * if return false, the add-in is not loaded, and cannot show the error when add-in is opened. */ if (!ConfigurationSetting.configVerbPerfect) { string logMessage = "BulkImportAddin is not initialized properly because of invalid config verb."; ConfigurationSetting.logWrap.ErrorLog(logMessage: logMessage); } return(true); }
public EBSVirtualReportTablesPackage() { ConfigurationSetting.logAssemblyVersion(Assembly.GetAssembly(typeof(ConfigurationSetting)), null); ConfigurationSetting.logAssemblyVersion(Assembly.GetAssembly(typeof(EBSVirtualReportTablesPackage)), null); }
public SrmReportTablePackage() { ConfigurationSetting.logAssemblyVersion(Assembly.GetAssembly(typeof(ConfigurationSetting)), null); ConfigurationSetting.logAssemblyVersion(Assembly.GetAssembly(typeof(SrmReportTablePackage)), null); }
/// <summary> /// Method which is invoked from the Add-In framework and is used to programmatically control whether to load the Add-In. /// </summary> /// <param name="GlobalContext">The Global Context for the Add-In framework.</param> /// <returns>If true the Add-In to be loaded, if false the Add-In will not be loaded.</returns> public bool Initialize(IGlobalContext GlobalContext) { _gContext = GlobalContext; ConfigurationSetting.logAssemblyVersion(Assembly.GetAssembly(typeof(SrmEngageAddInFactory)), null); return(true); }