/// <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; }
/// <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; }
/// <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); }
/// <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); }