public BackupViewModel(Backup backup, RepositoryManager repositoryManager, IDialogService dialogService)
        {
            this.backup = backup;
            this.repositoryManager = repositoryManager;
            this.dialogService = dialogService;

            BackupCommand = new RelayCommand(CreateBackup);
            RestoreCommand = new RelayCommand(RestoreBackup);
        }
示例#2
0
        public BackupViewModel(RepositoryManager repositoryManager,
            IBackupService backupService,
            IDialogService dialogService)
        {
            this.repositoryManager = repositoryManager;
            this.dialogService = dialogService;

            BackupService = backupService;
        }