/// <summary> /// Initializes component</summary> /// <returns>True iff component was initialized correctly</returns> void IInitializable.Initialize() { // check for assembly mapping attribute. // this attribute is used for bug-reporting and checking for update. Assembly assembly = Assembly.GetEntryAssembly(); ProjectMappingAttribute mapAttr = (ProjectMappingAttribute)Attribute.GetCustomAttribute(assembly, typeof(ProjectMappingAttribute)); m_assemblyMappingFound = (mapAttr != null && mapAttr.Mapping != null && mapAttr.Mapping.Trim().Length != 0); if (m_assemblyMappingFound) { // check for new update m_updateCheck = new VersionCheck(); m_updateCheck.CheckComplete += updateCheck_CheckComplete; m_commandService.RegisterCommand( new CommandInfo( Command.HelpCheckForUpdate, StandardMenu.Help, StandardCommandGroup.HelpUpdate, "Check for update...".Localize(), "Check for product update".Localize()), this); RegisterSettings(); } }
/// <summary> /// Initializes component</summary> /// <returns>True iff component was initialized correctly</returns> void IInitializable.Initialize() { // check for assembly mapping attribute. // this attribute is used for bug-reporting and checking for update. Assembly assembly = Assembly.GetEntryAssembly(); ProjectMappingAttribute mapAttr = (ProjectMappingAttribute)Attribute.GetCustomAttribute(assembly, typeof(ProjectMappingAttribute)); m_assemblyMappingFound = (mapAttr != null && mapAttr.Mapping != null && mapAttr.Mapping.Trim().Length != 0); if (m_assemblyMappingFound) { // check for new update m_updateCheck = new VersionCheck(); m_updateCheck.CheckComplete += updateCheck_CheckComplete; m_commandService.RegisterCommand(new CommandInfo( Command.HelpCheckForUpdate, StandardMenu.Help, StandardCommandGroup.HelpUpdate, "Check for update...".Localize(), "Check for product update".Localize()), this); RegisterSettings(); } }