/// <summary> /// /// </summary> public LayoutSplitC() { object tmpobj = Lemon.Deserialize(typeof(LayoutSplitCConfig), Lemon.GetCSFRootDirectory() + @"Styles\LayoutSplitCConfig.xml"); if (tmpobj != null) { this.UIConfig = (LayoutSplitCConfig)tmpobj; } }
/// <summary> /// 添加处理器 /// </summary> protected virtual void AddProcess() { object tbs = Lemon.Deserialize(typeof(ExceptionDefine), Lemon.GetCSFRootDirectory() + @"\SystemException\ExceptionDefine.xml"); if (tbs != null) { Lemonade.Frame.Message.IMsgProcess msgp = new AutomaticRecording((ExceptionDefine)tbs); Lemon.AddMsgProcess(msgp); } }
/// <summary> /// 加载工具栏 /// </summary> public void LoadToolsBar() { object tbs = Lemon.Deserialize(typeof(ToolsBarData), Lemon.GetCSFRootDirectory() + @"\ToolBar\ToolsBarData.xml"); if (tbs != null) { //转换为工具栏 ToolsBarFactroy tbfac = new ToolsBarFactroy((ToolsBarData)tbs); this.barsetting = tbfac.BarSetting; if (this.barsetting != null) { tbfac.BuildToolsButton(); } } }
/// <summary> /// 获取 /// </summary> /// <param name="SourceException"></param> public virtual string GetCustomException(string SourceExceptionMsg) { string result = "未定义"; object tbs = Lemon.Deserialize(typeof(ExceptionDefine), Lemon.GetCSFRootDirectory() + @"\SystemException\ExceptionDefine.xml"); if (tbs != null) { var tagce = ((ExceptionDefine)tbs).ExList.Find(delegate(CustomException ce) { return(ce.Value == SourceExceptionMsg); }); if (tagce != null) { result = tagce.Title; } } return(result); }
/// <summary> /// 获取样式参数 /// </summary> /// <param name="WindowClassFullName"></param> /// <returns></returns> public StylePar GetStyleParameter(string WindowClassFullName) { string xmlfile = Lemon.GetCSFRootDirectory() + @"\Styles\Data\" + WindowClassFullName + ".xml"; if (File.Exists(xmlfile)) { object tmpobj = Lemon.Deserialize(typeof(StylePar), xmlfile); if (tmpobj != null) { if (Lemon.GetObjType(tmpobj) == typeof(StylePar)) { return((StylePar)tmpobj); } } } return(null); }