public ListViewModel() { _mangaManager = EdenKernel.Get<IMangaManager>(); _searchText = string.Empty; _dispatcher = Dispatcher.CurrentDispatcher; Mangas = new CollectionViewSource(); Mangas.Filter += Filter; LoadCommand = new AsynchronousCommand(Load); DeleteCommand = new AsynchronousCommand(Delete); }
public AddViewModel() { _edenApi = EdenKernel.Get<EdenApi>(); _mangaManager = EdenKernel.Get<IMangaManager>(); _dispatcher = Dispatcher.CurrentDispatcher; Mangas = new CollectionViewSource { Source = new List<JsonManga>() }; Mangas.Filter += Filter; FetchCommand = new AsynchronousCommand(Fetch); SaveCommand = new AsynchronousCommand(Save); }