Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        public BinUpdaterVM(IRepository <SyncableFileRemote> filesRepo,
                            AppFileGrouper fileGrouper,
                            IFileSynchronizer fileSynchronizer,
                            BinUpdaterCfgFile cfgFile,
                            UpdaterSessionVM usrSessionVm,
                            ID7Client d7Client,
                            LogScrollerVM logScroller)
        {
            DisplayName   = "Bin Updater";
            _d7Client     = ForwardLogs(d7Client);
            _grouper      = ForwardLogs(fileGrouper);
            _synchronizer = ForwardLogs(fileSynchronizer);
            _remotes      = ForwardLogs(filesRepo);
            _cfgFile      = ForwardLogs(cfgFile);
            UserSession   = ForwardLogs(usrSessionVm);
            UpdateNowCmd  = AsyncCommand.Create(tkn => UpdateNow(tkn));

            LogScroller = logScroller.ListenTo(this);
        }