ACAT.Lib.Core.PanelManagement.PanelConfigMap.Load C# (CSharp) Method

Load() public static method

Loads class Types from the specified assembly
public static Load ( Assembly assembly ) : bool
assembly System.Reflection.Assembly Assembly to load from
return bool
        public static bool Load(Assembly assembly)
        {
            bool retVal = loadTypesFromAssembly(assembly);
            return retVal;
        }

Same methods

PanelConfigMap::Load ( IEnumerable extensionDirs ) : bool

Usage Example

Example #1
0
        /// <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);
        }
All Usage Examples Of ACAT.Lib.Core.PanelManagement.PanelConfigMap::Load