Esempio n. 1
0
 public FFmpegConfig(string ffmpegPath, IUserInterfaceManager userInterfaceManager)
 {
     this.FFmpegPath           = ffmpegPath;
     this.UserInterfaceManager = userInterfaceManager;
     this.api        = new WindowsApiService();
     this.fileSystem = new FileSystemService();
 }
Esempio n. 2
0
 public MainPageViewModel(
     IMathOperationsService mathOperationsService,
     IWindowsApiService windowsApiService)
 {
     _mathOperationsService = mathOperationsService;
     _windowsApiService     = windowsApiService;
     SumCommand             = DelegateCommand.FromAsyncHandler(Sum);
     SubtractCommand        = DelegateCommand.FromAsyncHandler(Subtract);
     MultiplyCommand        = DelegateCommand.FromAsyncHandler(Multiply);
     DivideCommand          = DelegateCommand.FromAsyncHandler(Divide);
 }
Esempio n. 3
0
 public FFmpegConfig(IWindowsApiService winApi, IFileSystemService fileSystemService)
 {
     this.api        = winApi ?? throw new ArgumentNullException(nameof(winApi));
     this.fileSystem = fileSystemService ?? throw new ArgumentNullException(nameof(fileSystemService));
 }
 public MediaConfig(IWindowsApiService winApi, IFileSystemService fileSystemService)
 {
     _api        = winApi ?? throw new ArgumentNullException(nameof(winApi));
     _fileSystem = fileSystemService ?? throw new ArgumentNullException(nameof(fileSystemService));
 }