/// <summary> /// Performs initialization. Walks the extension /// dirs and caches the Types of all the scanner/dialogs and menus. /// The Type will be used to create an instance using .NET /// relection. /// </summary> /// <param name="extensionDirs">extension dirs to walk</param> /// <returns>true on success</returns> public bool Init(IEnumerable <String> extensionDirs) { var retVal = PanelConfigMap.Load(extensionDirs); PanelConfigMap.Load(Preferences.ApplicationAssembly); if (EvtStartupAddForms != null) { EvtStartupAddForms(this, new EventArgs()); } PanelConfigMap.CleanupOrphans(); var configNames = CoreGlobals.AppPreferences.PreferredPanelConfigNames.Split(';'); PreferredPanelConfigNames = configNames; return(retVal); }
/// <summary> /// Performs initialization. Walks the extension /// dirs and caches the Types of all the scanner/dialogs and menus. /// The Type will be used to create an instance using .NET /// relection. /// </summary> /// <param name="extensionDirs">extension dirs to walk</param> /// <returns>true on success</returns> public bool Init(IEnumerable <String> extensionDirs) { PanelConfigMap.Reset(); var retVal = PanelConfigMap.Load(extensionDirs); PanelConfigMap.Load(Preferences.ApplicationAssembly); if (EvtStartupAddForms != null) { EvtStartupAddForms(this, new EventArgs()); } PanelConfigMap.CleanupOrphans(); if (!String.IsNullOrEmpty(CoreGlobals.AppPreferences.PreferredPanelConfigNames)) { PanelConfigMap.SetDefaultPanelConfig(CoreGlobals.AppPreferences.PreferredPanelConfigNames.Trim()); } return(retVal); }