public BranchService(
     IGitFetchService gitFetchService,
     IGitPushService gitPushService,
     IGitBranchService gitBranchService,
     IGitMergeService gitMergeService,
     IGitCommitService gitCommitService,
     IGitCheckoutService gitCheckoutService,
     ICommitsService commitsService,
     IProgressService progressService,
     IMessage message,
     WindowOwner owner,
     IRepositoryCommands repositoryCommands,
     Lazy <IRepositoryService> repositoryService,
     IStatusService statusService)
 {
     this.gitFetchService    = gitFetchService;
     this.gitPushService     = gitPushService;
     this.gitBranchService   = gitBranchService;
     this.gitMergeService    = gitMergeService;
     this.gitCommitService   = gitCommitService;
     this.gitCheckoutService = gitCheckoutService;
     this.commitsService     = commitsService;
     this.progress           = progressService;
     this.message            = message;
     this.owner = owner;
     this.repositoryCommands = repositoryCommands;
     this.repositoryService  = repositoryService;
     this.statusService      = statusService;
 }
Esempio n. 2
0
 public CommitsService(
     IMessage message,
     IRepositoryCommands repositoryCommands,
     Func <SetBranchPromptDialog> setBranchPromptDialogProvider,
     IGitCommitBranchNameService gitCommitBranchNameService,
     IDiffService diffService,
     ILinkService linkService,
     IRepositoryMgr repositoryMgr,
     IProgressService progressService,
     IStatusService statusService,
     IGitCommitService gitCommitService,
     IGitStatusService gitStatusService,
     Func <
         BranchName,
         IEnumerable <CommitFile>,
         string,
         bool,
         CommitDialog> commitDialogProvider)
 {
     this.commitDialogProvider = commitDialogProvider;
     this.gitCommitService     = gitCommitService;
     this.gitStatusService     = gitStatusService;
     this.message                       = message;
     this.repositoryCommands            = repositoryCommands;
     this.setBranchPromptDialogProvider = setBranchPromptDialogProvider;
     this.gitCommitBranchNameService    = gitCommitBranchNameService;
     this.diffService                   = diffService;
     this.linkService                   = linkService;
     this.repositoryMgr                 = repositoryMgr;
     this.progress                      = progressService;
     this.statusService                 = statusService;
 }
Esempio n. 3
0
        internal MainWindowViewModel(
            WorkingFolder workingFolder,
            WindowOwner owner,
            IRepositoryCommands repositoryCommands,
            IRemoteService remoteService,
            ICommitsService commitsService,
            ILatestVersionService latestVersionService,
            IStartInstanceService startInstanceService,
            IRecentReposService recentReposService,
            IGitInfoService gitInfoService,
            IMessage message,
            IMainWindowService mainWindowService,
            MainWindowIpcService mainWindowIpcService,
            RepositoryViewModel repositoryViewModel)
        {
            this.workingFolder        = workingFolder;
            this.owner                = owner;
            this.repositoryCommands   = repositoryCommands;
            this.remoteService        = remoteService;
            this.commitsService       = commitsService;
            this.startInstanceService = startInstanceService;
            this.recentReposService   = recentReposService;
            this.gitInfoService       = gitInfoService;
            this.message              = message;
            this.mainWindowService    = mainWindowService;
            this.mainWindowIpcService = mainWindowIpcService;

            RepositoryViewModel = repositoryViewModel;

            workingFolder.OnChange += (s, e) => Notify(nameof(WorkingFolder));
            latestVersionService.OnNewVersionAvailable += (s, e) => IsNewVersionVisible = true;
            latestVersionService.StartCheckForLatestVersion();
            IsRepoView = true;
        }
Esempio n. 4
0
 public BranchViewModel(
     IBranchService branchService,
     IDiffService diffService,
     IThemeService themeService,
     IRepositoryCommands repositoryCommands)
 {
     this.branchService      = branchService;
     this.diffService        = diffService;
     this.themeService       = themeService;
     this.repositoryCommands = repositoryCommands;
     this.showBranchCommand  = Command <Branch>(repositoryCommands.ShowBranch);
 }
Esempio n. 5
0
 public CommandUpdateEmpleo(IRepositoryCommands <Empleo> repository,
                            Func <IUnitOfWork> unitOfWork, IEmpleoRepositoryReadOnly repositoryRead,
                            IBeneficiarioRepositoryReadOnly beneficiarioRepositoryRead,
                            IProvideAllowedDaysForNewEmpleo providerDays,
                            IEmpresaRepositoryReadOnly empresaRepositoryRead,
                            ITipoDeEmpleoReadOnlyRepository tipoDeEmpleoReadOnlyRepository) : base(repository, unitOfWork)
 {
     _repositoryRead             = repositoryRead;
     _beneficiarioRepositoryRead = beneficiarioRepositoryRead;
     _providerDays                   = providerDays;
     _empresaRepositoryRead          = empresaRepositoryRead;
     _tipoDeEmpleoReadOnlyRepository = tipoDeEmpleoReadOnlyRepository;
 }
Esempio n. 6
0
 public CommitViewModel(
     IBranchService branchService,
     IDiffService diffService,
     IThemeService themeService,
     IRepositoryCommands repositoryCommands,
     ICommitsService commitsService,
     ITagService tagService)
 {
     this.branchService      = branchService;
     this.diffService        = diffService;
     this.themeService       = themeService;
     this.repositoryCommands = repositoryCommands;
     this.commitsService     = commitsService;
     this.tagService         = tagService;
 }
        public ViewModelService(
            IBranchService branchService,
            IDiffService diffService,
            ICommitsService commitsService,
            ITagService tagService,
            IThemeService themeService,
            IMessage message,
            IRepositoryMgr repositoryMgr,
            IRepositoryCommands repositoryCommands,
            Func <BranchViewModel> branchViewModelProvider)
        {
            this.branchService           = branchService;
            this.diffService             = diffService;
            this.commitsService          = commitsService;
            this.tagService              = tagService;
            this.themeService            = themeService;
            this.message                 = message;
            this.repositoryMgr           = repositoryMgr;
            this.repositoryCommands      = repositoryCommands;
            this.branchViewModelProvider = branchViewModelProvider;

            this.deleteBranchCommand = new Command <Branch>(
                branchService.DeleteBranchAsync, branchService.CanDeleteBranch, nameof(deleteBranchCommand));
        }
Esempio n. 8
0
 public CommandInsertTipoEmpleo(IRepositoryCommands <TipoEmpleo> repository, Func <IUnitOfWork> unitOfWork) : base(repository, unitOfWork)
 {
 }
Esempio n. 9
0
 public CommandInsertVisita(IRepositoryCommands <Visita> repository, Func <IUnitOfWork> unitOfWork) : base(repository, unitOfWork)
 {
 }
Esempio n. 10
0
 public CommandInsertParentesco(IRepositoryCommands <Parentesco> repository, Func <IUnitOfWork> unitOfWork)
     : base(repository, unitOfWork)
 {
 }
Esempio n. 11
0
 public CommandUpdateMotivoDespido(IMotivoDespidoRepositoryReadOnly repositoryRead,
                                   IRepositoryCommands <MotivoDespido> repository, Func <IUnitOfWork> unitOfWork) : base(repository, unitOfWork)
 {
     _repositoryRead = repositoryRead;
 }
 public CommandUpdateActividadEconomica(IActividadEconomicaRepositoryReadOnly repositoryRead,
                                        IRepositoryCommands <ActividadEconomica> repository, Func <IUnitOfWork> unitOfWork) : base(repository, unitOfWork)
 {
     _repositoryRead = repositoryRead;
 }
Esempio n. 13
0
 public BaseCommandHandler(IRepositoryCommands <TCommand> repository)
 {
     this.Repository = repository;
 }
Esempio n. 14
0
 public CommandUpdateVisita(IVisitaRepositoryReadOnly repositoryRead,
                            IRepositoryCommands <Visita> repository, Func <IUnitOfWork> unitOfWork) : base(repository, unitOfWork)
 {
     _repositoryRead = repositoryRead;
 }
Esempio n. 15
0
 protected CommandUpdateIdentity(IRepositoryCommands <T> repository, Func <IUnitOfWork> unitOfWork)
 {
     _repository = repository;
     _factory    = unitOfWork;
 }
 public CommandInsertMotivoDespido(IRepositoryCommands <MotivoDespido> repository, Func <IUnitOfWork> unitOfWork)
     : base(repository, unitOfWork)
 {
 }
Esempio n. 17
0
 public AddCommandHandler(IRepositoryCommands <TCommand> repository)
     : base(repository)
 {
 }
Esempio n. 18
0
 public CommandUpdateTipoEmpleo(ITipoDeEmpleoReadOnlyRepository repositoryRead,
                                IRepositoryCommands <TipoEmpleo> repository, Func <IUnitOfWork> unitOfWork) : base(repository, unitOfWork)
 {
     _repositoryRead = repositoryRead;
 }
Esempio n. 19
0
 public CommandInsertActividadEconomica(IRepositoryCommands <ActividadEconomica> repository, Func <IUnitOfWork> unitOfWork) : base(repository, unitOfWork)
 {
 }
Esempio n. 20
0
 public DeleteCommandHandler(IRepositoryCommands <TCommand> repository)
     : base(repository)
 {
 }
Esempio n. 21
0
 public CommandUpdateParentesco(IParentescoReadOnlyRepository repositoryRead,
                                IRepositoryCommands <Parentesco> repository, Func <IUnitOfWork> unitOfWork)
     : base(repository, unitOfWork)
 {
     _repositoryRead = repositoryRead;
 }