コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public FolderExplorerGroupComponent(List <IFolderSystem> folderSystems, FolderContentsComponent contentComponent)
 {
     _folderSystems            = folderSystems;
     _contentComponent         = contentComponent;
     _stackTabComponent        = new StackTabComponentContainer(StackStyle.ShowOneOnly, false);
     _folderExplorerComponents = new Dictionary <IFolderSystem, IFolderExplorerComponent>();
 }
コード例 #2
0
 public FolderSystemContext(FolderExplorerGroupComponent owner, IFolderExplorerComponent explorerComponent, FolderContentsComponent contentsComponent)
 {
     _owner             = owner;
     _explorerComponent = explorerComponent;
     _contentsComponent = contentsComponent;
     _contentsComponent.SelectedItemsChanged      += SelectedItemsChangedEventHandler;
     _contentsComponent.SelectedItemDoubleClicked += SelectedItemDoubleClickeEventHandler;
 }
コード例 #3
0
            public FolderContentsPagingModel(FolderContentsComponent owner, IResourceResolver resolver)
                : base(resolver)
            {
                _owner = owner;

                AddAction("Previous", Desktop.SR.TitlePrevious, "Icons.PreviousPageToolSmall.png");
                AddAction("Next", Desktop.SR.TitleNext, "Icons.NextPageToolSmall.png");

                // Set the initial visible and enable state to false
                this.Previous.Visible = false;
                this.Previous.Enabled = false;
                this.Next.Visible     = false;
                this.Next.Enabled     = false;

                this.Previous.SetClickHandler(OnPrevious);
                this.Next.SetClickHandler(OnNext);

                _owner.PropertyChanged += OnPropertyChanged;
            }
コード例 #4
0
        public HomePageContainer(List <IFolderSystem> folderSystems, IPreviewComponent preview)
            : base(SplitOrientation.Vertical)
        {
            _folderContentComponent = new FolderContentsComponent();
            _folderSystemGroup      = new FolderExplorerGroupComponent(folderSystems, _folderContentComponent);

            // Construct the default content view
            _previewComponent        = preview;
            _defaultContentComponent = new SplitComponentContainer(
                new SplitPane("FolderItems", _folderContentComponent, 0.4f),
                new SplitPane("ItemPreview", _previewComponent, 0.6f),
                SplitOrientation.Vertical);

            _contentArea = new StackedComponentContainer();
            _contentArea.Show(_defaultContentComponent);

            this.Pane1 = new SplitPane("Folders", _folderSystemGroup, 0.2f);
            this.Pane2 = new SplitPane("Contents", _contentArea, 0.8f);
        }