public ExplorerViewModel(IExplorerInitializer initializer) { _events = initializer.Events; _rootModels = initializer.RootModels; _windowManager = initializer.WindowManager; _initializer = initializer; WindowTitleMask = "{0}"; DisplayName = ""; //Toolbar = new ToolbarViewModel(events); Breadcrumb = new BreadcrumbViewModel(_internalEvents); Statusbar = new StatusbarViewModel(_internalEvents); Sidebar = new SidebarViewModel(_internalEvents); FileList = new FileListViewModel(_windowManager, _internalEvents, Sidebar); DirectoryTree = new DirectoryTreeViewModel(_windowManager, _internalEvents); Navigation = new NavigationViewModel(_internalEvents); DragHelper = NullSupportDrag.Instance; DropHelper = NullSupportDrop.Instance; Commands = new ExplorerCommandManager(this, FileList, DirectoryTree, Navigation, Breadcrumb); setRootModels(_rootModels); if (_events != null) { _events.Subscribe(this); } _internalEvents.Subscribe(this); }
public AddDirectoryViewModel(IExplorerInitializer initializer, IProfile[] rootProfiles) { DisplayName = "Map directory"; _initializer = initializer.Clone(); _rootProfiles = rootProfiles; _selectedPath = null; }
public OpenInNewMdiWindowV1(MdiContainer container, IExplorerInitializer initializer, Func <ParameterDic, IEntryModel[]> getSelectionFunc = null) : base("OpenInNewWindow") { _container = container; _initializer = initializer; _getSelectionFunc = getSelectionFunc; }
private void setInitializer(IExplorerInitializer value) { _initializer = value; if (_initializer != null) { _initializer.InitializeModelCreatedAsync(this); if (_attachedView) { _initializer.InitializeViewAttachedAsync(this); } } }
//private Func<IEntryModel, string> _destPathFunc; public SzsCommandModel(IExplorerInitializer initializer) : base(ResultCommand.NoError) { _initializer = initializer; HeaderIconExtractor = ResourceIconExtractor <ICommandModel> .ForSymbol(0xE188); IsHeaderVisible = true; Header = "Compress"; //Func<IEntryModel, string> destPathFunc, //_destPathFunc = destPathFunc; IsVisibleOnMenu = true; }
public MdiWindowInitializers(IExplorerInitializer initializer, WPF.MDI.MdiContainer container) { _container = container; _initializer = initializer; }
public FilePickerViewModel(IExplorerInitializer initializer, string filterStr, FilePickerMode mode = FilePickerMode.Open) : base(initializer) { init(mode, filterStr); }
public DirectoryPickerViewModel(IExplorerInitializer initializer) : base(initializer) { init(); }