Пример #1
0
        /// <summary>
        /// Called before the main form is created.
        /// </summary>
        /// <returns><c>true</c> if the application should continue loading; otherwise, <c>false</c>.</returns>
        protected override bool OnBeforeCreateMainForm()
        {
            // We plug the mef composition here.
            var pluginsManager = new PluginsManager(
                Properties.Settings.Default.PluginsDirectories.Cast <string>());

            Globals.PluginsManager = pluginsManager;
            pluginsManager.Compose();

            return(base.OnBeforeCreateMainForm());
        }
Пример #2
0
        /// <summary>
        /// Called before the main form is created.
        /// </summary>
        /// <returns><c>true</c> if the application should continue loading; otherwise, <c>false</c>.</returns>
        protected override bool OnBeforeCreateMainForm()
        {
            // We plug the mef composition here.
            var pluginsManager = new PluginsManager(
                Properties.Settings.Default.PluginsDirectories.Cast<string>());
            Globals.PluginsManager = pluginsManager;
            pluginsManager.Compose();

            return base.OnBeforeCreateMainForm();
        }