Esempio n. 1
0
 public WatchHistoryPageViewModel(
     ApplicationLayoutManager applicationLayoutManager,
     NiconicoSession niconicoSession,
     WatchHistoryManager watchHistoryManager,
     HohoemaPlaylist hohoemaPlaylist,
     Services.PageManager pageManager,
     WatchHistoryRemoveAllCommand watchHistoryRemoveAllCommand
     )
 {
     ApplicationLayoutManager = applicationLayoutManager;
     _niconicoSession         = niconicoSession;
     _watchHistoryManager     = watchHistoryManager;
     HohoemaPlaylist          = hohoemaPlaylist;
     PageManager = pageManager;
     WatchHistoryRemoveAllCommand = watchHistoryRemoveAllCommand;
     Histories = new ObservableCollection <HistoryVideoInfoControlViewModel>();
 }
        public WatchHistoryPageViewModel(
            ILoggerFactory loggerFactory,
            ApplicationLayoutManager applicationLayoutManager,
            NiconicoSession niconicoSession,
            WatchHistoryManager watchHistoryManager,
            PageManager pageManager,
            VideoPlayWithQueueCommand videoPlayWithQueueCommand,
            WatchHistoryRemoveAllCommand watchHistoryRemoveAllCommand,
            SelectionModeToggleCommand selectionModeToggleCommand
            )
        {
            _logger = loggerFactory.CreateLogger <WatchHistoryPageViewModel>();
            ApplicationLayoutManager = applicationLayoutManager;
            _niconicoSession         = niconicoSession;
            _watchHistoryManager     = watchHistoryManager;
            PageManager = pageManager;
            VideoPlayWithQueueCommand    = videoPlayWithQueueCommand;
            WatchHistoryRemoveAllCommand = watchHistoryRemoveAllCommand;
            SelectionModeToggleCommand   = selectionModeToggleCommand;
            Histories = new ObservableCollection <HistoryVideoListItemControlViewModel>();

            NowUpdating = new ReactivePropertySlim <bool>(false)
                          .AddTo(_CompositeDisposable);
        }
Esempio n. 3
0
 public WatchHistoryRemoveItemCommand(
     WatchHistoryManager watchHistoryManager
     )
 {
     _watchHistoryManager = watchHistoryManager;
 }