public FileReaderViewModel( IUIPlatformService <TFileInfo> uiPlatformService, ISystemPlatformService <TFileInfo> systemPlatformService) { _uiPlatformService = Guard.ArgumentNotNull(uiPlatformService, nameof(uiPlatformService)); _systemPlatformService = Guard.ArgumentNotNull(systemPlatformService, nameof(systemPlatformService)); FileOpenCommand = new DelegateCommand(async() => await ExecuteFileOpenCommand()); }
public ViewModelFactory( IDispatcher dispatcher, IUIPlatformService <TFileInfo> uiPlatformService, ISystemPlatformService <TFileInfo> systemPlatformService) { _dispatcher = Guard.ArgumentNotNull(dispatcher, nameof(dispatcher)); _uiPlatformService = Guard.ArgumentNotNull(uiPlatformService, nameof(uiPlatformService)); _systemPlatformService = Guard.ArgumentNotNull(systemPlatformService, nameof(systemPlatformService)); }