/// <summary> /// 构造函数 /// </summary> public DictionaryViewModel() { dictionaryService = EngineHelper.Resolve <IDictionaryService>(); petsPackageService = EngineHelper.Resolve <IPETSPackageService>(); var dictionarys = dictionaryService.GetAll().OrderBy(x => x.Genre).ToList(); SourceList = new ObservableCollection <DictionaryModel>(EngineHelper.Map <List <DictionaryModel> >(dictionarys)); CaptchaBitmapImage = GetCaptcha(); }
/// <summary> /// 构造函数 /// </summary> public HomeViewModel() { dictionaryService = EngineHelper.Resolve <IDictionaryService>(); petsPackageService = EngineHelper.Resolve <IPETSPackageService>(); }