Exemplo n.º 1
0
 public AddRemoveFolderVM(IVMLocator vmLocator, IMessengerService messengerService, IMediaCollectionManager collectionManager, IApplicationSettings applicationSettings)
     : base(vmLocator)
 {
     _collectionManager   = collectionManager;
     _messengerService    = messengerService;
     _applicationSettings = applicationSettings;
 }
Exemplo n.º 2
0
        public MainVM(IVMLocator vmLocator, IMediaCollectionManager mediaCollectionManager)
            : base(vmLocator)
        {
            _mediaCollectionManager = mediaCollectionManager;
            AllItems = new ObservableCollection <MediaItem>();
            AllItems.CollectionChanged += AllItems_CollectionChanged;

            OnLoadCommand = new RelayCommand(LoadedCmd);
            PlayCommand   = new RelayCommand <long>(PlayCmd, l => true);
        }
Exemplo n.º 3
0
        private void Cleanup()
        {
            Locations.CollectionChanged -= Locations_CollectionChanged;
            Locations.Clear();

            AddLocationCommand    = null;
            RemoveLocationCommand = null;
            Status = null;

            _messengerService  = null;
            _collectionManager = null;
        }