public SearchingViewModel(IPlaylistCollector searchCommand) { this.SearchCommand = searchCommand; _dispatcher = Dispatcher.FromThread(Thread.CurrentThread); _playListPersistence = new PlaylistRepository(SqlConnector.GetDefaultConnection()); _playlistItemRepository = new PlaylistItemRepository(SqlConnector.GetDefaultConnection()); }
public UserPlaylistViewModel() { this.PathSelector = new PathSelector(); this.PathSelector.SetPath(path => this._currenItem.Path = path); _playListPersistence = new PlaylistRepository(SqlConnector.GetDefaultConnection()); _playListItemPersistence = new PlaylistItemRepository(SqlConnector.GetDefaultConnection()); _playlistCollection.Clear(); GetListsFromRepository(); AddItemCommand = new AddPlaylistCommand(this); RemovePlaylist = new RemovePlaylist(this); }
public DownloadViewModel() { _playListPersistence = new PlaylistRepository(SqlConnector.GetDefaultConnection()); _playlistItemRepository = new PlaylistItemRepository(SqlConnector.GetDefaultConnection()); }
public ListItemViewModel() { _playListItemPersistence = new PlaylistItemRepository(SqlConnector.GetDefaultConnection()); this.PropertyChanged += (a, b) => this.ValidateProperties(); }