Beispiel #1
0
 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();
 }
Beispiel #2
0
 public MainWindow()
 {
     InitializeComponent();
     this.presentationLogic = PresentationLogicFactory.CreatePresentationLogic();
     this.DataContext       = presentationLogic.MainWindowVM;
 }