public RecentItemsViewModel( IRecentItemDataService dataService, IRecentItemActionService actionService, IRecentItemCommandService commandService, IRecentItemContextMenuService contextMenuService, IDialogService dialogService ) : base() { DataService = dataService; ActionService = actionService; CommandService = commandService; ContextMenuService = contextMenuService; DialogService = dialogService; Heading = HEADING; IsVisible = true; GetCommands(); Refresh(); MessengerInstance.Register <RecentItemsRefreshRequestedMessage>(this, RefreshRequested); MessengerInstance.Register <RecentItemClickedMessage>(this, SelectItem); MessengerInstance.Register <RecentItemTogglePinnedClickedMessage>(this, TogglePinned); MessengerInstance.Register <RecentItemRemoveClickedMessage>(this, RemoveItem); MessengerInstance.Register <RecentItemCopyPathClickedMessage>(this, CopyItemPath); MessengerInstance.Register <RecentItemOpenInVSClickedMessage>(this, OpenInVS); }
//private readonly bool filtered = true; public RecentItemsViewModel(IRecentItemDataService dataService, IRecentItemActionService actionService, IRecentItemCommandService commandService) : base() { DataService = dataService; ActionService = actionService; CommandService = commandService; Heading = HEADING; IsVisible = true; GetCommands(); // refresh needs to be done in the view's code-behind MessengerInstance.Register <NotificationMessage <RecentItemViewModel> >(this, ActionCallback); }