public DirectoryViewController(DirectoryViewModel directoryViewModel) { viewModel = directoryViewModel; searchResultsViewModel = viewModel.BuildDirectoryContentViewModel(); searchResultsViewController = new DirectoryContentViewController(searchResultsViewModel); searchController = new UISearchController(searchResultsViewController); searchController.SearchResultsUpdater = searchResultsViewController; directoryContentViewModel = viewModel.BuildDirectoryContentViewModel(); directoryContentViewController = new DirectoryContentViewController(directoryContentViewModel); searchResultsViewController.Delegate = this; directoryContentViewController.Delegate = this; }
public void SelectedItemDetails(DirectoryContentViewController controller, Item <object> item) { Delegate?.ItemDetailsSelected(item); }
public void ChoosedItems(DirectoryContentViewController controller, IEnumerable <Item <object> > items) { Delegate?.ItemsPicked(items); }
public void ChangedEditingStatus(DirectoryContentViewController controller, bool isEditing) { searchController.SearchBar.SetEnabled(!isEditing); }