Download data/DWSIM.SharedClassesCSharp/FilePicker/FilePickerService.cs from introvoyz041/Dwsim: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.SharedClassesCSharp/FilePicker/FilePickerService.cs
- Command line
-
hf download hf://datasets/introvoyz041/Dwsim/data/DWSIM.SharedClassesCSharp/FilePicker/FilePickerService.cs
-
curl -L -o FilePickerService.cs https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.SharedClassesCSharp/FilePicker/FilePickerService.cs
1.06 kB
| using DWSIM.Interfaces; | |
| using DWSIM.SharedClassesCSharp.FilePicker.Windows; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace DWSIM.SharedClassesCSharp.FilePicker | |
| { | |
| public class FilePickerService : IFilePickerService | |
| { | |
| private static FilePickerService _instance; | |
| public static IFilePickerService GetInstance() | |
| { | |
| if (_instance == null) | |
| _instance = new FilePickerService(); | |
| return _instance; | |
| } | |
| private Func<IFilePicker> _filePickerFactory = () => new WindowsFilePicker(); | |
| public void SetFilePickerFactory(Func<IFilePicker> filePickerFactory) | |
| { | |
| _filePickerFactory = filePickerFactory; | |
| } | |
| private FilePickerService() | |
| { | |
| } | |
| public IFilePicker GetFilePicker() | |
| { | |
| //return new WindowsFilePicker(); | |
| //return new Simulate365FilePicker(); | |
| return _filePickerFactory(); | |
| } | |
| } | |
| } | |