示例#1
0
        /// <summary>初始化界面</summary>
        /// <param name="dic"></param>
        /// <returns></returns>
        public static FrmItems Create(Dictionary<string, string> dic)
        {
            FrmItems item = new FrmItems();

            if (dic == null) item.CreatDic();
            else
                item.Dic = dic;

            return item;
        }
示例#2
0
        /// <summary>初始化界面</summary>
        /// <param name="xconfig"></param>
        /// <returns></returns>
        public static FrmItems Create(ModelConfig xconfig)
        {
            FrmItems item = new FrmItems();

            if (xconfig == null) throw new Exception("配置信息异常");

            item.XConfig = xconfig;

            if (xconfig.Items == null) item.CreatDic();
            else
                item.Dic = xconfig.Items;

            return item;
        }
示例#3
0
        /// <summary>初始化界面</summary>
        /// <param name="dic"></param>
        /// <returns></returns>
        public static FrmItems Create(Dictionary <string, string> dic)
        {
            FrmItems item = new FrmItems();

            if (dic == null)
            {
                item.CreatDic();
            }
            else
            {
                item.Dic = dic;
            }

            return(item);
        }
示例#4
0
        /// <summary>初始化界面</summary>
        /// <param name="xconfig"></param>
        /// <returns></returns>
        public static FrmItems Create(XConfig xconfig)
        {
            FrmItems item = new FrmItems();

            if (xconfig == null)
            {
                throw new Exception("配置信息异常");
            }

            item.XConfig = xconfig;

            if (xconfig.Items == null)
            {
                item.CreatDic();
            }
            else
            {
                item.Dic = xconfig.Items;
            }

            return(item);
        }