Пример #1
0
        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());
        }
Пример #2
0
 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));
 }