Beispiel #1
0
        public void LoadDicTypeSelectList()
        {
            List <SelectListItem> lists = new List <SelectListItem>();

            lists = EnumUtility.ConvertEnumToListItems(typeof(DicTypeEnum));
            lists.Insert(0, new SelectListItem()
            {
                Text = "请选择", Value = "0"
            });
            DicTypeSelectList = lists;
        }