internal ExplorerTree(IConfiguration configuration = null, ExplorerTreeViewModel explorerTreeViewModel = null, IPresentationLogic presentationLogic = null, ISelectedExplorerTreeItemAPI selectedExplorerTreeItemAPI = null) { this.configuration = configuration ?? new Configuration.Configuration(); this.PresentationLogic = presentationLogic ?? PresentationLogicFactory.CreatePresentationLogic(configuration); this.explorerTreeVM = explorerTreeViewModel ?? new ExplorerTreeViewModel((this as IExplorerTree).Configuration, this.PresentationLogic); this.PresentationLogic.ExplorerTreeVM = this.explorerTreeVM; (this as IExplorerTree).Configuration.Initialisation((this as IExplorerTree).ExplorerTreeVM); this.selectedItemAPI = selectedExplorerTreeItemAPI ?? new SelectedExplorerTreeItemAPI(this.explorerTreeVM); this.explorerTreeVM.LoadAllDriveItemViewModels(); }
public MainWindow() { InitializeComponent(); this.presentationLogic = PresentationLogicFactory.CreatePresentationLogic(); this.DataContext = presentationLogic.MainWindowVM; }