예제 #1
0
        public LocalImageExplorerControl(LocalImageExplorerComponent component)
        {
            _component = component;

            _folderViewSelectionUpdatePublisher = new DelayedEventPublisher(OnFolderViewSelectionUpdatePublished);

            InitializeComponent();
            InitializeHistoryMenu();
            InitializeIcons();
            InitializeFocusList();

            SetViewMode(Settings.Default.FolderViewMode, false);
            SetHomeLocation(Settings.Default.HomeLocation);

            _folderView.ExceptionRaised += OnFolderControlExceptionRaised;
            _folderTree.ExceptionRaised += OnFolderControlExceptionRaised;

            ResetFocus();             // reset focus must happen after explorer controls are initially populated

            // Initialize menus here
            ToolStripBuilder.BuildMenu(_folderViewContextMenu.Items, _component.ContextMenuModel.ChildNodes);
            ToolStripBuilder.BuildMenu(_folderTreeContextMenu.Items, _component.ContextMenuModel.ChildNodes);
        }
		public void SetComponent(IApplicationComponent component)
		{
			_component = component as LocalImageExplorerComponent;
		}
 public void SetComponent(IApplicationComponent component)
 {
     _component = component as LocalImageExplorerComponent;
 }