Exemple #1
0
        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;
        }
Exemple #2
0
 public void SelectedItemDetails(DirectoryContentViewController controller, Item <object> item)
 {
     Delegate?.ItemDetailsSelected(item);
 }
Exemple #3
0
 public void ChoosedItems(DirectoryContentViewController controller, IEnumerable <Item <object> > items)
 {
     Delegate?.ItemsPicked(items);
 }
Exemple #4
0
 public void ChangedEditingStatus(DirectoryContentViewController controller, bool isEditing)
 {
     searchController.SearchBar.SetEnabled(!isEditing);
 }