public MainWindowViewModel(IWindowsVolumeListenerService windowsVolumeListenerService, IWindowService windowService, IConfigurationFileService configurationFileService, IVideoFileService videoFileService) { m_WindowsVolumeListenerService = windowsVolumeListenerService; _windowService = windowService; _configurationFileService = configurationFileService; _videoFileService = videoFileService; m_WindowsVolumeListenerService.DriveInsertedEvent += DriveInserted; m_WindowsVolumeListenerService.DriveRemovedEvent += DriveRemoved; }
public VideosTransfererService() { var encryptionService = new EncryptionService(); _videoFileService = new VideoFileService(); _configurationFileService = new ConfigurationFileService(encryptionService, _videoFileService); m_WindowsVolumeListenerService = new WindowsVolumeListenerService(); _logger = new FileLogger(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logs")); KernelConfig.RegisterInstance <ILogger>(_logger); KernelConfig.RegisterInstance <IEncryptionService>(encryptionService); KernelConfig.RegisterInstance <IVideoFileService>(_videoFileService); KernelConfig.RegisterInstance <IConfigurationFileService>(_configurationFileService); KernelConfig.RegisterInstance <IWindowsVolumeListenerService>(m_WindowsVolumeListenerService); InitializeComponent(); }
public CameraConfiguratorViewModel(string driveName, IWindowService windowService, IConfigurationFileService configurationFileService, IVideoFileService videoFileService) { DriveName = driveName; _windowService = windowService; _configurationFileService = configurationFileService; _videoFileService = videoFileService; var config = _configurationFileService.GetConfigurationFile(DriveName); FirstName = config?.FirstName; LastName = config?.LastName; LicenceNumber = config?.LicenceNumber; _videoPaths = _videoFileService.GetAllVideoFiles(driveName); InitCommands(); this.PropertyChanged += (sender, args) => { ConfigureCommand.IsEnabled = CheckFormValues(); }; }
public FilesController(IVideoFileService videoFileService) { _videoFileService = videoFileService; }
public ConfigurationFileService(IEncryptionService encryptionService, IVideoFileService videoFileService) { _encryptionService = encryptionService; _videoFileService = videoFileService; }