public void ItemDetailsSelected(DirectoryItemPresentationCoordinator coordinator, Item <object> selectedItemDetails)
 {
     if (_directoryViewController != null)
     {
         _directoryViewController.IsSearchControllerActive = false;
     }
     Delegate?.ItemDetailsSelected(coordinator, selectedItemDetails);
 }
예제 #2
0
        public void ItemDetailsSelected(DirectoryItemPresentationCoordinator coordinator, Item <object> selectedItemDetails)
        {
            if (_navigationController == null)
            {
                throw new InvalidOperationException("nav controller is null.");
            }

            var newCoordinator = new FileItemPresentationCoordinator(_navigationController, selectedItemDetails, fileSpecifications);

            _coordinators.Add(newCoordinator);
            newCoordinator.StartDetailsPreview(true);
        }
예제 #3
0
        public void Start(Item <object> item, FileSpecifications fileSpecifications, Configuration configuration, bool animated)
        {
            this.configuration      = configuration;
            this.fileSpecifications = fileSpecifications;

            switch (item.Type)
            {
            case ItemType.Directory:
                var coordinator = new DirectoryItemPresentationCoordinator(_navigationController, fileSpecifications,
                                                                           configuration);
                coordinator.Delegate = this;
                coordinator.Start(item.Url, animated);
                _coordinators.Add(item);
                break;

            case ItemType.File:
                var fileCoordinator = new FileItemPresentationCoordinator(_navigationController, item, fileSpecifications);
                fileCoordinator.Start(animated);
                _coordinators.Add(fileCoordinator);
                break;
            }
        }
예제 #4
0
 public void Finished(DirectoryItemPresentationCoordinator coordinator)
 {
     Delegate?.Finished(this);
 }
예제 #5
0
 public void ItemsPicked(DirectoryItemPresentationCoordinator coordinator, IEnumerable <Item <object> > pickedItems)
 {
     Delegate?.ItemsPicked(this, pickedItems);
 }
예제 #6
0
 public void ItemSelected(DirectoryItemPresentationCoordinator coordinator, Item <object> selectedItem)
 {
     Start(selectedItem, fileSpecifications, configuration, true);
 }