예제 #1
0
        /// <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();
        }
예제 #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public HomeViewModel()
 {
     dictionaryService  = EngineHelper.Resolve <IDictionaryService>();
     petsPackageService = EngineHelper.Resolve <IPETSPackageService>();
 }