示例#1
0
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel()
        {
            SpliderInfo = new SpliderInfoModel()
            {
            };
            Links              = new List <LinkModel>();
            StartCommand       = new RelayCommand(Start);
            NextCommand        = new RelayCommand(Next);
            HistoryDataCommand = new RelayCommand(HistoryData);

            ILinksService service = IOCContainer.Instance.Resolve <ILinksService>();

            Links = Mapper.DynamicMap <IList <LinksModel>, IList <LinkModel> >(service.QueryLinks(null).Data);
        }
示例#2
0
        private void HistoryData()
        {
            ILinksService service = IOCContainer.Instance.Resolve <ILinksService>();

            Links = Mapper.DynamicMap <IList <LinksModel>, IList <LinkModel> >(service.QueryLinks(null).Data);
        }