Beispiel #1
0
        public IBrowserElementViewModel CreateBrowserElementViewModelBase(IDeviceBrowserElement deviceBrowserElement, IDeviceDirectoryViewModel parentDeviceDirectoryViewModel)
        {
            IBrowserElementViewModel browserElementViewModel =
                this._container.Resolve <IBrowserElementViewModel>(
                    deviceBrowserElement.StrongName + ApplicationGlobalNames.CommonInjectionStrings.VIEW_MODEL);

            browserElementViewModel.Model = deviceBrowserElement;
            browserElementViewModel.ParentDeviceDirectoryViewModel = parentDeviceDirectoryViewModel;
            return(browserElementViewModel);
        }
Beispiel #2
0
 public async Task <bool> RemoveElementFromDirectory(IDeviceBrowserElement deviceBrowserElement)
 {
     return(await this._fileDriver.DeleteFile(deviceBrowserElement.Name));
 }
Beispiel #3
0
 public async Task <bool> RemoveChildElementAsync(IDeviceBrowserElement browserElement)
 {
     return(await this._directoryLoader.RemoveElementFromDirectory(browserElement));
 }