Esempio n. 1
0
        /// <summary>
        /// 读取模块管理器配置
        /// </summary>
        /// <returns></returns>
        protected virtual Lemonade.Frame.Running.IRunningRules LoadRules()
        {
            Lemonade.Frame.Running.IRunningRules result = null;
            string s = Lemon.GetCSFRootDirectory();

            result = Lemon.FindInstanceFromDirectory <Lemonade.Frame.Running.IRunningRules>(s);
            return(result);
        }
Esempio n. 2
0
        /// <summary>
        /// 读取模块管理器配置
        /// </summary>
        /// <returns></returns>
        protected virtual Lemonade.Frame.Module.IModuleManager loadModuleManager()
        {
            Lemonade.Frame.Module.IModuleManager result = null;
            string s = Lemon.GetCSFRootDirectory();

            result = Lemon.FindInstanceFromDirectory <Lemonade.Frame.Module.IModuleManager>(s);
            return(result);
        }
Esempio n. 3
0
        /// <summary>
        /// 读取模块管理器配置
        /// </summary>
        /// <returns></returns>
        protected virtual Lemonade.Frame.Running.ISystemExceptionDefine LoadExceptionDefine()
        {
            Lemonade.Frame.Running.ISystemExceptionDefine result = null;
            string s = Lemon.GetCSFRootDirectory();

            result = Lemon.FindInstanceFromDirectory <Lemonade.Frame.Running.ISystemExceptionDefine>(s);
            return(result);
        }
Esempio n. 4
0
        /// <summary>
        /// 加载数据交换池
        /// </summary>
        /// <returns></returns>
        protected virtual Lemonade.Frame.Swapping.ISwapPool LoadSwapPool()
        {
            Lemonade.Frame.Swapping.ISwapPool result = null;
            string s = Lemon.GetCSFRootDirectory();

            result = Lemon.FindInstanceFromDirectory <Lemonade.Frame.Swapping.ISwapPool>(s);
            return(result);
        }
Esempio n. 5
0
        /// <summary>
        /// 从框架的模块存储路径中自动获取菜单工厂的实例
        /// </summary>
        /// <returns></returns>
        protected virtual Lemonade.Frame.Menu.IMenuItemFactory LoadMenuItemFactory()
        {
            Lemonade.Frame.Menu.IMenuItemFactory result = null;
            string s = Lemon.GetCSFRootDirectory();

            result = Lemon.FindInstanceFromDirectory <Lemonade.Frame.Menu.IMenuItemFactory>(s);
            return(result);
        }
Esempio n. 6
0
        /// <summary>
        /// 从框架的模块存储路径中自动获取菜单工厂的实例
        /// </summary>
        /// <returns></returns>
        protected virtual Lemonade.Frame.UI.ILayoutManager LoadUI()
        {
            Lemonade.Frame.UI.ILayoutManager result = null;
            string s = Lemon.GetCSFRootDirectory();

            result = Lemon.FindInstanceFromDirectory <Lemonade.Frame.UI.ILayoutManager>(s);
            return(result);
        }
Esempio n. 7
0
        /// <summary>
        /// 搜索所有模块程序集
        /// </summary>
        /// <returns></returns>
        protected virtual void LocaStyle()
        {
            this.winstyles = new List <IWindowStyle>();
            string styledir = Lemon.GetCSFRootDirectory() + @"\Styles\";

            this.winstyles = Lemon.FindInstanceFromDirectory <IWindowStyle>(styledir, false);
            this.layouts   = Lemon.FindInstanceFromDirectory <ILayout>(styledir, false);
            //styledir = Lemon.GetCSFRootDirectory() + @"\Styles\Data\";
            //LoadStyleXml(styledir);
        }
Esempio n. 8
0
        /// <summary>
        /// 从框架根目录中加载工具栏管理器
        /// </summary>
        /// <returns></returns>
        protected virtual Tools.IToolsBarManager LoadToolsBarManager()
        {
            Tools.IToolsBarManager result = null;
            string s = Lemon.GetCSFRootDirectory();

            result = Lemon.FindInstanceFromDirectory <Tools.IToolsBarManager>(s);
            if (result != null)
            {
                result.LoadToolsBar();
            }
            return(result);
        }
Esempio n. 9
0
        /// <summary>
        /// 从框架根目录中加载动作管理器
        /// </summary>
        /// <returns></returns>
        protected virtual IActionManager LoadActionManager()
        {
            Lemonade.Frame.Running.IActionManager result = null;
            string s = Lemon.GetCSFRootDirectory();

            result = Lemon.FindInstanceFromDirectory <Lemonade.Frame.Running.IActionManager>(s);
            if (result != null)
            {
                result.LoadActionsContext();
            }
            return(result);
        }
Esempio n. 10
0
        /// <summary>
        /// 启动守护线程
        /// </summary>
        /// <returns></returns>
        protected virtual INazgul LaunchSummon()
        {
            ISummon summon = null;
            string  s      = Lemon.GetCSFRootDirectory();

            summon = Lemon.FindInstanceFromDirectory <ISummon>(s);
            if (summon != null)
            {
                INazgul nazgul = summon.RingtoWear();
                nazgul.LoadNazgulSkill();
                nazgul.UseAllSkill();
                return(nazgul);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 11
0
        /// <summary>
        /// 加载戒灵技能
        /// </summary>
        public void LoadNazgulSkill()
        {
            string s = Lemon.GetCSFRootDirectory() + @"\Skills\";

            this.skills = Lemon.FindInstanceFromDirectory <INazgulSkill>(s, false);
        }
Esempio n. 12
0
        /// <summary>
        /// 加载动作上下文处理器到模板
        /// </summary>
        /// <returns></returns>
        public void LoadActionsContext()
        {
            string styledir = Lemon.GetCSFRootDirectory() + @"\Actions\";

            this.contexttemplates = Lemon.FindInstanceFromDirectory <IActionContext>(styledir, false);
        }