/// <summary> /// 生成节点内容 /// </summary> /// <param name="listControlObj"></param> /// <param name="listControl"></param> /// <param name="treeviewItemObj"></param> /// <returns></returns> private UIElement ProduceTreeviewItem(List <ControlDetailForPage> listControlObj, List <IControl> listControl, ControlDetailForPage treeviewItemObj) { List <int> listChild = JsonController.DeSerializeToClass <List <int> >(treeviewItemObj.d17); ControlDetailForPage gridObj = listControlObj.Where(p => listChild.Contains(p.ctrl_id)).ToList()[0]; ControlDecoder controlDecoder = new ControlDecoder(); xinlongyuParentControl parentControl = new xinlongyuParentControl(); controlDecoder.ProduceFatherControl(gridObj, listControlObj, listControl, parentControl); parentControl.Width = 200; parentControl.Height = 50; return(parentControl); }
public PageDecoder() { _controlDecode = new ControlDecoder(); }
/// <summary> /// 构造函数 /// </summary> public PageFactory() { _pageConnection = new PageConnection(); _pageDecoder = new PageDecoder(); _controlDecode = new ControlDecoder(); }