/// <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); }
private void HistoryData() { ILinksService service = IOCContainer.Instance.Resolve <ILinksService>(); Links = Mapper.DynamicMap <IList <LinksModel>, IList <LinkModel> >(service.QueryLinks(null).Data); }