コード例 #1
0
 public FolderSystemContext(FolderExplorerGroupComponent owner, IFolderExplorerComponent explorerComponent, FolderContentsComponent contentsComponent)
 {
     _owner             = owner;
     _explorerComponent = explorerComponent;
     _contentsComponent = contentsComponent;
     _contentsComponent.SelectedItemsChanged      += SelectedItemsChangedEventHandler;
     _contentsComponent.SelectedItemDoubleClicked += SelectedItemDoubleClickeEventHandler;
 }
コード例 #2
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);
        }
コード例 #3
0
 public FolderExplorerGroupToolContext(FolderExplorerGroupComponent owner)
 {
     _owner = owner;
 }
コード例 #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public FolderExplorerComponent(IFolderSystem folderSystem, FolderExplorerGroupComponent owner)
 {
     _folderTreeRoot = new FolderTreeRoot(this);
     _folderSystem   = folderSystem;
     _owner          = owner;
 }