Example #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;
        }
Example #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;
        }
Example #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);
        }
Example #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);
        }
Example #5
0
        private void frmItems_Click(Object sender, EventArgs e)
        {
            //FrmItems.Create(XConfig.Current.Items).Show();

            FrmItems.Create(ModelConfig.Current).Show();
        }