Пример #1
0
 public SiteTreeController(ICommonService commonService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, ISlugService slugService)
 {
     this._commonService   = commonService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._slugService     = slugService;
 }
Пример #2
0
 public ArgumentController(IArgumentService argumentService, ICategoryService categoryService, IPostService postService, ISlugService slugService, IPhotoService photoService)
 {
     this._argumentService = argumentService;
     this._categoryService = categoryService;
     this._postService     = postService;
     this._slugService     = slugService;
     this._photoService    = photoService;
 }
Пример #3
0
 public ArgumentProcessorService(ISettings settings = null,
                                 IControllerService controllerService = null,
                                 IArgumentService argService          = null,
                                 IConsoleService console = null)
 {
     _settings          = settings ?? new Settings();
     _controllerService = controllerService ?? new ControllerService();
     _argService        = argService ?? new ArgumentService();
     _console           = console ?? new ConsoleService();
 }
Пример #4
0
 public PostController(ICommonService commonService, IPostService postService, ICategoryService categoryService, IArgumentService argumentService, IAlbumService albumService, IPhotoService photoService, IVideoService videoService, ISlugService slugService)
 {
     this._commonService   = commonService;
     this._postService     = postService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._albumService    = albumService;
     this._photoService    = photoService;
     this._videoService    = videoService;
     this._slugService     = slugService;
 }
Пример #5
0
 public RewriteController(ISlugService slugService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, IAlbumService albumService, IPhotoService photoService, IVideoService videoService, IReviewService reviewService)
 {
     this._slugService     = slugService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._albumService    = albumService;
     this._photoService    = photoService;
     this._videoService    = videoService;
     this._reviewService   = reviewService;
 }
Пример #6
0
 public HomeController(ILogger <HomeController> logger, IPhotoService photoService, IPodcastService podcastService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, ISlugService slugService, IHomeService homeService)
 {
     _logger               = logger;
     this._photoService    = photoService;
     this._podcastService  = podcastService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._slugService     = slugService;
     this._homeService     = homeService;
 }
Пример #7
0
 public PhotoController(ICommonService commonService, IPhotoService photoService, IPhotoFolderService photoFolderService, IAlbumService albumService, IFolderService folderService, IFileService fileService, IUserService userService, IHomeService homeService, IArgumentService argumentService, IPostService postService)
 {
     this._commonService      = commonService;
     this._photoService       = photoService;
     this._photoFolderService = photoFolderService;
     this._albumService       = albumService;
     this._folderService      = folderService;
     this._fileService        = fileService;
     this._userService        = userService;
     this._homeService        = homeService;
     this._argumentService    = argumentService;
     this._postService        = postService;
 }
 public GeneralCritereaImpactController(
     IGeneralCritereaImpactService generalCritereaImpactService,
     IUserService userService,
     ITopicService topicService,
     IArgumentService argumentService,
     IMapper mapper)
 {
     _topicService = topicService;
     _userService  = userService;
     _generalCritereaImpactService = generalCritereaImpactService;
     _mapper          = mapper;
     _argumentService = argumentService;
 }
Пример #9
0
 public QuestionController(
     IQuestionService questionService,
     IUserService userService,
     ITopicService topicService,
     IArgumentService argumentService,
     IMapper mapper)
 {
     _topicService    = topicService;
     _userService     = userService;
     _questionService = questionService;
     _mapper          = mapper;
     _argumentService = argumentService;
 }
Пример #10
0
        public MainViewModel(IDialogService dialogService, IArgumentService argumentService)
        {
            FormatCommand  = new DelegateCommand <Window>(FormatAction);
            _dialogService = dialogService;

            UpdateDrives();

            var drive = argumentService.Drive;

            if (drive != null)
            {
                SelectedDrive = drive;
            }
        }
Пример #11
0
 public CategoryController(ICategoryService categoryService, IArgumentService argumentService, IPostService postService)
 {
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
 }
Пример #12
0
        public MainViewModel(IHasherService hasherService, IWatcherService watcherService, IDialogService dialogService, IArgumentService argumentService)
        {
            BrowseCommand  = new DelegateCommand <Window>(_BrowseAction);
            ResetCommand   = new DelegateCommand(_ResetAction);
            CancelCommand  = new DelegateCommand(_CancelAction);
            ComputeCommand = new DelegateCommand(_ComputeAction);

            _hasherService  = hasherService;
            _watcherService = watcherService;
            _dialogService  = dialogService;

            _hasherService.WorkerProgressChanged += _WorkerProgressChanged;
            _hasherService.WorkerRunCompleted    += _WorkerRunCompleted;

            _watcherService.WatcherFileDeleteEvent += _WatcherFileDeleteEvent;
            _watcherService.WatcherFileRenameEvent += _WatcherFileRenameEvent;

            HashName = argumentService.HashName ?? _hasherService.DefaultHasher;
            FilePath = argumentService.FilePath ?? "";

            if (CanCompute && argumentService.ComputeNow)
            {
                _ComputeAction(null);
            }
        }
Пример #13
0
        public MainViewModel(IPresetService presetService, IDialogService dialogService, IArgumentService argumentService)
        {
            BrowseSourceCommand      = new DelegateCommand <Window>(BrowseSourceAction);
            BrowseDestinationCommand = new DelegateCommand <Window>(BrowseDestinationAction);
            EditPresetCommand        = new DelegateCommand <Window>(EditPresetAction);
            AddPresetCommand         = new DelegateCommand <Window>(AddPresetAction);
            RemovePresetCommand      = new DelegateCommand(RemovePresetAction);
            CreateCommand            = new DelegateCommand(CreateAction);
            ResetCommand             = new DelegateCommand(ResetAction);

            _presetService = presetService;
            _dialogService = dialogService;

            Presets = _presetService.Presets;

            Image = new ImageModel();
            Image.PropertyChanged += ImagePropertyChanged;
            Image.Source           = argumentService.SourcePath ?? "";

            if (argumentService.PresetName == null)
            {
                Image.Preset = _presetService.DefaultPreset;
            }
            else
            {
                var preset = _presetService.GetPreset(argumentService.PresetName);
                if (preset != null)
                {
                    Image.Preset = preset;
                }
            }
        }