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