public FilesTabVM2(IRepository<SyncableFileRemote> filesRepo, AppFileGrouper fileGrouper, IFileSynchronizer fileSynchronizer, ID7Client d7Client, BinUploaderCfgFile cfgFile) { _grouper = ForwardLogs(fileGrouper); _synchronizer = ForwardLogs(fileSynchronizer); _remotes = ForwardLogs(filesRepo); //_cfgFile = ForwardLogs(cfgFile); //_d7Client = ForwardLogs(d7Client); MainList = new VmList<RemoteVsLocalFile>(); UploadChangesCmd = AsyncCommand.Create(token => UploadChanges(token)); _remotes.SetClient(d7Client, cfgFile); _synchronizer.SetClient(d7Client); SetEventHandlers(); }
public FoldersTabVM(IRepository<SyncableFolderInfo> foldersRepo, BinUploaderCfgFile cfgFile) { DisplayName = "Local Folders"; _repo = ForwardLogs(foldersRepo); MainList = new VmList<SyncableFolderInfo>(); }