/// <summary>
 ///     Look for and return all of the startup items present on this computer.
 /// </summary>
 public static IEnumerable <StartupEntryBase> GetAllStartupItems()
 {
     return(StartupEntryFactory.GetStartupItems().Cast <StartupEntryBase>()
            .Concat(TaskEntryFactory.GetTaskStartupEntries().Cast <StartupEntryBase>())
            .Concat(BrowserEntryFactory.GetBrowserHelpers().Cast <StartupEntryBase>())
            .Concat(ServiceEntryFactory.GetServiceEntries().Cast <StartupEntryBase>()));
 }
 static StartupManager()
 {
     Factories = new Dictionary <string, Func <IEnumerable <StartupEntryBase> > >
     {
         {
             Localisation.StartupEntries,
             () => StartupEntryFactory.GetStartupItems().Cast <StartupEntryBase>()
         },
         {
             Localisation.Startup_ShortName_Task,
             () => TaskEntryFactory.GetTaskStartupEntries().Cast <StartupEntryBase>()
         },
         {
             Localisation.Startup_Shortname_BrowserHelper,
             () => BrowserEntryFactory.GetBrowserHelpers().Cast <StartupEntryBase>()
         },
         {
             Localisation.Startup_ShortName_Service,
             () => ServiceEntryFactory.GetServiceEntries().Cast <StartupEntryBase>()
         }
     };
 }