public NewsItemsViewModel(INewsItemDataService dataService, INewsItemActionService actionService, INewsItemCommandService commandService, IVisualStudioService visualStudioService)
        {
            DataService         = dataService;
            ActionService       = actionService;
            CommandService      = commandService;
            VisualStudioService = visualStudioService;

            GetCommands();
            Refresh();

            MessengerInstance.Register <NotificationMessage <NewsItemViewModel> >(this,
                                                                                  (message) => ActionService.DoAction(message.Content));
        }
示例#2
0
        public NewsItemsViewModel(INewsItemDataService dataService, INewsItemActionService actionService, INewsItemCommandService commandService)
        {
            DataService    = dataService;
            ActionService  = actionService;
            CommandService = commandService;

            Heading   = HEADING;
            IsVisible = true;

            GetCommands();
            Refresh();

            MessengerInstance.Register <NotificationMessage <NewsItemViewModel> >(this,
                                                                                  (message) => ActionService.DoAction(message.Content));
        }