private static void GetFilesInformation(bool byPath = true) { if (byPath) { GetPath(); } IGetFileServices getFileList = container.GetInstance <IFabricService>().IGetFileServices(); fileList = getFileList.GetFileInformation(path); }
private static void OpenFile(IList <FileC> filec) { IGetFileServices getService = container.GetInstance <IFabricService>().IGetFileServices(); string filenumber; FileTypes fileType; DisplayFiles(filec); Console.WriteLine("Type the file number you would like to open"); Console.WriteLine(); filenumber = Console.ReadLine(); Int32.TryParse(filenumber, out int index); index = index - 1; fileType = getService.GetFileType(filec[index]); IFileUtilsServices openFile = container.GetInstance <IFabricService>().CreateIFileUtilsServices(fileType); openFile.OpenFile(filec[index].DirectoryPath); }
public FabricServices(Container container, IFileExplorerService fileExplorerService, IGetFileServices fileUtilsServices) { _container = container; _fileExplorerService = fileExplorerService; _fileUtilsServices = fileUtilsServices; }