Beispiel #1
0
 public ReviewService(IReviewRepository reviewRepository, IPictureService pictureService, IPictureRepository pictureRepository, IReviewLinkRepository reviewLinkRepository)
 {
     this.ReviewRepository     = reviewRepository;
     this.PictureService       = pictureService;
     this.PictureRepository    = pictureRepository;
     this.ReviewLinkRepository = reviewLinkRepository;
 }
 public PictureService(
     IPictureRepository pictureRepository,
     IPictureFactory pictureFactory)
 {
     this.pictureRepository = pictureRepository;
     this.pictureFactory    = pictureFactory;
 }
 public DrawQuestionViewModel(DrawQuestion question, IQuestionRepository questionRepository, IPictureRepository pictureRepository) : base(question)
 {
     _question             = question;
     _questionRepository   = questionRepository;
     _pictureRepository    = pictureRepository;
     OpenFileDialogCommand = new RelayCommand(OpenFileDialogAction);
 }
Beispiel #4
0
        public ContributionController(IConstantRepository ConstantParam, IMemberRepository MemberParam, IFamilyRepository FamilyParam,
            IContributionRepository ContributionParam, ISubCategoryRepository SubCategoryParam, IPictureRepository PictureParam, 
            ISpouseRepository SpouseParam, IMinistryRepository MinistryParam)
        {
            ConstantRepository = ConstantParam;
            MemberRepository = MemberParam;
            FamilyRepository = FamilyParam;
            ContributionRepository = ContributionParam;
            SubCategoryRepository = SubCategoryParam;
            PictureRepository = PictureParam;
            SpouseRepository = SpouseParam;
            MinistryRepository = MinistryParam;

            ViewBag.Supervisor = false;
            int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]);
            if (MembershipRepositroy.IsUser(memberID))
            {
                user user = MembershipRepositroy.GetUserByID(memberID);
                if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "FinanceLead")) //creator access
                {
                    ViewBag.Supervisor = true;
                }
                if (user.role.Name == "WebMaster") //creator access
                {
                    ViewBag.WebMaster = true;
                }

                if ((user.role.Name == "FinanceStaff") || (user.role.Name == "Admin2")) //creator access
                {
                    ViewBag.Supervisor2 = true;
                }
            }
        }
 public PostMessageProcessor(IPostRepository postRepository, IPostCategoryRepository postCategoryRepository, IPictureRepository pictureRepository)
     : base("POST")
 {
     _postRepository         = postRepository;
     _postCategoryRepository = postCategoryRepository;
     _pictureRepository      = pictureRepository;
 }
Beispiel #6
0
        public StaffController(IConstantRepository ConstantParam, IStaffRepository StaffParam, IResponsibilityRepository ResponsibilityParam,
                               IMinistryRepository MinistryParam, IPictureRepository PictureParam)
        {
            ConstantRepository       = ConstantParam;
            StaffRepository          = StaffParam;
            ResponsibilityRepository = ResponsibilityParam;
            MinistryRepository       = MinistryParam;
            PictureResponsibility    = PictureParam;

            ViewBag.Supervisor = false;
            int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]);

            if (memberID > 0)
            {
                if (MembershipRepositroy.IsUser(memberID))
                {
                    user user = MembershipRepositroy.GetUserByID(memberID);
                    if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "Admin2")) //creator access
                    {
                        ViewBag.Supervisor = true;
                    }
                    if (user.role.Name == "WebMaster") //creator access
                    {
                        ViewBag.WebMaster = true;
                    }

                    if (user.role.Name == "Officer") //creator access
                    {
                        ViewBag.Supervisor2 = true;
                    }
                }
            }
        }
Beispiel #7
0
        // GET: /Admin/ProductType/

        public PictureController(IPictureRepository _pictureRepository,
                                 IPictureTypeRepository _pictureTypeRepository)
        {
            this.baseRepository        = _pictureRepository;
            this.pictureRepository     = _pictureRepository;
            this.pictureTypeRepository = _pictureTypeRepository;
        }
Beispiel #8
0
        public PropertyInventoryController(IConstantRepository ConstantParam, IMemberRepository MemberParam,
                                           IPropertyInventoryRepository PropertyInventoryParam, IPictureRepository PictureParam, IDocumentRepository DocumentParam)
        {
            ConstantRepository          = ConstantParam;
            MemberRepository            = MemberParam;
            PropertyInventoryRepository = PropertyInventoryParam;
            PictureRepository           = PictureParam;
            DocumentRepository          = DocumentParam;

            ViewBag.Supervisor = false;
            int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]);

            if (memberID > 0)
            {
                if (MembershipRepositroy.IsUser(memberID))
                {
                    user user = MembershipRepositroy.GetUserByID(memberID);
                    if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "Admin2")) //creator access
                    {
                        ViewBag.Supervisor = true;
                    }
                    if (user.role.Name == "WebMaster") //creator access
                    {
                        ViewBag.WebMaster = true;
                    }

                    if (user.role.Name == "Officer") //creator access
                    {
                        ViewBag.Supervisor2 = true;
                    }
                }
            }
        }
Beispiel #9
0
 public FileService(IFileSystemService fileSystemService, IPictureRepository pictureRepository, IMetadataRepository metadataRepository, IMapper mapper)
 {
     _fileSystemService = fileSystemService;
     _pictureRepository = pictureRepository;
     _mapper            = mapper;
     _uploadedPictures  = new List <Picture>();
 }
Beispiel #10
0
 private DBContext()
 {
     _accounts           = new AccountRepository();
     _accountTypes       = new AccountTypeRepository();
     _audits             = new AuditRepository();
     _categories         = new CategoryRepository();
     _containers         = new ContainerRepository();
     _dimensions         = new DimensionRepository();
     _facilities         = new FacilityRepository();
     _facilityTypes      = new FacilityTypeRepository();
     _priorities         = new PriorityRepository();
     _users              = new UserRepository();
     _packagingLevels    = new PackagingLevelRepository();
     _pictures           = new PictureRepository();
     _projects           = new ProjectRepository();
     _ratings            = new RatingRepository();
     _requests           = new RequestRepository();
     _requestItems       = new RequestItemRepository();
     _requestItemTypes   = new RequestItemTypeRepository();
     _roles              = new RoleRepository();
     _sources            = new SourceRepository();
     _status             = new StatusRepository();
     _status             = new StatusRepository();
     _tasks              = new TaskRespository();
     _dcIssueItems       = new DCIssueItemRepository();
     _dcIssues           = new DCIssueRepository();
     _dcIssuesFacilities = new DCIssueFacilityRepository();
     _failedSamples      = new FailedSampleRepository();
     _requestCategories  = new RequestCategoryRepository();
 }
Beispiel #11
0
 public PostService(IPostRepository postRepository, ITextRepository textRepository, IPictureRepository pictureRepository, IAzureStorageService azureStorageService)
 {
     _postRepository      = postRepository;
     _textRepository      = textRepository;
     _pictureRepository   = pictureRepository;
     _azureStorageService = azureStorageService;
 }
        public PictureGridViewModel(IPictureRepository pictureRepository,
                                    IEventAggregator eventAggregator,
                                    IMessageDialogService modalDialog,
                                    IFileExplorerDialogService fileExplorerDialogService)
        {
            if (DesignerProperties.GetIsInDesignMode(new DependencyObject()))
            {
                return;
            }

            _pictureRepository         = pictureRepository;
            _eventAggregator           = eventAggregator;
            _modalDialog               = modalDialog;
            _fileExplorerDialogService = fileExplorerDialogService;

            _eventAggregator.GetEvent <PictureOverwrittenEvent>().Subscribe(OnPictureOverwritten);

            ArePicturesLoading = false;

            _pictures     = new ObservableCollection <Picture>();
            _filterOn     = false;
            _searchFilter = string.Empty;

            SearchCommand                       = new RelayCommand <string>(OnSearchCommand);
            EditPictureNameCommand              = new RelayCommand <Picture>(OnEditPictureNameCommand);
            EditSelectedPictureNamesCommand     = new RelayCommand <List <Picture> >(OnEditSelectedPictureNamesCommand);
            ClosePictureCommand                 = new RelayCommand <Picture>(OnClosePictureCommand);
            ClosePicturesCommand                = new RelayCommand <List <Picture> >(OnClosePicturesCommand);
            CopyPicturesCommand                 = new RelayCommand <List <Picture> >(OnCopyPicturesCommand);
            MovePicturesCommand                 = new RelayCommand <List <Picture> >(OnMovePicturesCommand);
            DeletePicturesCommand               = new RelayCommand <List <Picture> >(OnDeletePicturesCommand);
            ViewEditPicturesCommand             = new RelayCommand <List <Picture> >(OnViewEditPicturesCommand);
            PicturesListSelectionChangedCommand = new RelayCommand <int>(OnPicturesListSelectionChangedCommand);
            DropCommand = new RelayCommand <object>(OnDropCommand);
        }
Beispiel #13
0
 public NewsController(INewsRepository newsRepository, IPictureRepository pictureRepository, IUserRepository userRepository, ICategoryRepository categoryRepository)
 {
     _newsRepository     = newsRepository;
     _userRepository     = userRepository;
     _categoryRepository = categoryRepository;
     _pictureRepository  = pictureRepository;
 }
Beispiel #14
0
 public CarController(ICarRepository CarRepository, IWebHostEnvironment env, IPictureRepository pictureRepository, UserManager <UserData> userManager)
 {
     _carRepository     = CarRepository;
     _env               = env;
     _pictureRepository = pictureRepository;
     _userManager       = userManager;
 }
 public EmployeeController(ILogger <EmployeeController> logger, IEmployeeRepository employeeRepository, ICompanyRepository companyRepository, IPictureRepository pictureRepository)
 {
     _logger = logger;
     this.employeeRepository = employeeRepository;
     this.companyRepository  = companyRepository;
     this.pictureRepository  = pictureRepository;
 }
 public AnswerMenu()
 {
     this.InitializeComponent();
     answerRepo = new AnswerRepository();
     picRepo    = new PictureRepository();
     PopulateAnswerList();
 }
Beispiel #17
0
 // GET: /Admin/ProductType/
 public PictureController(IPictureRepository _pictureRepository,
     IPictureTypeRepository _pictureTypeRepository)
 {
     this.baseRepository = _pictureRepository;
     this.pictureRepository = _pictureRepository;
     this.pictureTypeRepository = _pictureTypeRepository;
 }
Beispiel #18
0
        public MainViewModel(IFolderTreeViewModel folderTreeViewModel,
                             Func <IPictureGridViewModel> pictureGridViewModelCreator,
                             IPictureRepository pictureRepository,
                             IFileService fileService,
                             IFileExplorerDialogService fileExplorerDialogService,
                             IEventAggregator eventAggregator)
        {
            if (DesignerProperties.GetIsInDesignMode(new System.Windows.DependencyObject()))
            {
                return;
            }

            FolderTreeViewModel          = folderTreeViewModel;
            _pictureGridViewModelCreator = pictureGridViewModelCreator;
            _pictureRepository           = pictureRepository;
            _fileService = fileService;
            _fileExplorerDialogService = fileExplorerDialogService;

            _helpInfoText = "";

            _eventAggregator = eventAggregator;
            _eventAggregator.GetEvent <OpenPicturesFromFolderEvent>().Subscribe(OnOpenPicturesFromFolder);
            _eventAggregator.GetEvent <StatusTextUserActionEvent>().Subscribe(OnStatusTextUserAction);
            _eventAggregator.GetEvent <StatusTextHelpInfoEvent>().Subscribe(OnStatusTextHelpInfo);
            _eventAggregator.GetEvent <MovingPicturesEvent>().Subscribe(OnMovingPicturesEvent);

            PictureGridViewModels = new ObservableCollection <IPictureGridViewModel>();

            OpenFolderCommand     = new RelayCommand <SearchOption>(OnOpenFolderCommand);
            OpenFilesCommand      = new RelayCommand <object>(OnOpenFilesCommand);
            CloseFolderTabCommand = new RelayCommand <IPictureGridViewModel>(OnCloseFolderCommand);
            AboutCommand          = new RelayCommand <object>(OnAboutCommand);

            CheckCommandLine();
        }
Beispiel #19
0
 public LikeController(IUserRepository userRepository, IPictureRepository pictureRepository, ILikeRepository likeRepository)
 {
     this.userRepository    = userRepository;
     this.pictureRepository = pictureRepository;
     this.likeRepository    = likeRepository;
     userGet = new UserGet(userRepository);
 }
 public FeedService(IPostRepository postRepository, IPictureRepository pictureRepository, IVideoRepository videoRepository, IUrlResolverService urlResolverService)
 {
     _postRepository     = postRepository;
     _pictureRepository  = pictureRepository;
     _videoRepository    = videoRepository;
     _urlResolverService = urlResolverService;
 }
 public ReviewService(IReviewRepository reviewRepository, IPictureService pictureService, IPictureRepository pictureRepository, IReviewLinkRepository reviewLinkRepository)
 {
     this.ReviewRepository = reviewRepository;
     this.PictureService = pictureService;
     this.PictureRepository = pictureRepository;
     this.ReviewLinkRepository = reviewLinkRepository;
 }
 public RestaurantController(IRestoRepository RestoRepository, ICuisineRepository CuisineRepository, IPictureRepository PictureRepository)
 {
     restoRepository   = RestoRepository;
     cuisineRepository = CuisineRepository;
     pictureRepository = PictureRepository;
     cuisineUC         = new CuisineUC(cuisineRepository);
     pictureUC         = new PictureUC(pictureRepository);
 }
Beispiel #23
0
 public DeleteProductPictureCommandHandler(IPictureRepository pictureRepository,
                                           IMediator mediator,
                                           IDomainEventsService domainEventsService)
 {
     _pictureRepository   = pictureRepository;
     _mediator            = mediator;
     _domainEventsService = domainEventsService;
 }
Beispiel #24
0
 public PictureController(IOptions <FileUploadOptions> fileOptions, IPictureRepository pictureRepository, IExperienceRepository experienceRepository, ILogger logger, IMapper mapper)
 {
     _fileOptions          = fileOptions.Value;
     _pictureRepository    = pictureRepository;
     _experienceRepository = experienceRepository;
     _logger = logger;
     _mapper = mapper;
 }
 /// <summary>
 /// Document
 /// </summary>
 /// <param name="pictureRepository"></param>
 /// <param name="azureStorageService"></param>
 /// <param name="mapper"></param>
 /// <param name="configuration"></param>
 public PictureController(IPictureRepository pictureRepository, IAzureStorageService azureStorageService, IMapper mapper, IConfiguration configuration)
 {
     _configuration       = configuration;
     _pictureRepository   = pictureRepository;
     _azureStorageService = azureStorageService;
     _mapper = mapper;
     _picturesContainerName = _configuration["AzureStorage:PicturesContainerName"];
 }
 public ImageService(IUnitOfWork uow, ICloudStorage cloudStorage, IPictureRepository pictureRepository,IUserService userService, ILoggerService logger)
 {
     _uow = uow;
     _cloudStorage = cloudStorage;
     _pictureRepository = pictureRepository;
     _userService = userService;
     _loggerService = logger;
 }
 public SearchController(IUserRepository userRepository, IFolderRepository folderRepository, IPictureRepository pictureRepository, IFollowerRepository followerRepository)
 {
     this.userRepository     = userRepository;
     this.folderRepository   = folderRepository;
     this.pictureRepository  = pictureRepository;
     this.followerRepository = followerRepository;
     userGet = new UserGet(userRepository);
 }
Beispiel #28
0
 public PictureController(IPictureModificator modifier, IPictureRepository pictureRepository,
                          IUserRepository userRepository, ILogger <PictureController> logger)
 {
     _modifier          = modifier;
     _pictureRepository = pictureRepository;
     _userRepository    = userRepository;
     _logger            = logger;
 }
 public ProductService(IGenreRepository genreRepository, IPictureService pictureService, IPictureRepository pictureRepository, IArtistRepository artistRepository, IAlbumRepository albumRepository, IPurchaseRepository purchaseRepository)
 {
     this.GenreRepository = genreRepository;
     this.PictureRepository = pictureRepository;
     this.PictureService = pictureService;
     this.ArtistRepository = artistRepository;
     this.AlbumRepository = albumRepository;
     this.PurchaseRepository = purchaseRepository;
 }
 public HomeController(ICarRepository CarRepository, UserManager <UserData> userManager, IEmailService emailService, IPictureRepository pictureRepository)
 {
     //_CarRepository = new PowerkCarRepository();
     //services.AddTransit, PowerkCarrepository (wskrzykniecie konstruktora)
     _CarRepository     = CarRepository;
     _userManager       = userManager;
     _emailService      = emailService;
     _pictureRepository = pictureRepository;
 }
 public PictureService(IAgentRepository agentRepository, ICacheHelper cacheHelper, IPictureRepository pictureRepository, IUserInfoRepository userInfoRepository, IMessageCenter messageCenter)
     : base(agentRepository, cacheHelper)
 {
     _pictureRepository  = pictureRepository;
     _userInfoRepository = userInfoRepository;
     _messageCenter      = messageCenter;
     logInfo             = LogManager.GetLogger("INFO");
     logError            = LogManager.GetLogger("ERROR");
 }
Beispiel #32
0
 public static void BindPicture(Guid roasterId, byte[] picture, IPictureRepository pictureRepository)
 {
     if (picture != null)
     {
         var bytePicture = Picture.New(picture);
         bytePicture.RoasterId = roasterId;
         pictureRepository.Add(bytePicture);
     }
 }
 public ProductService(IGenreRepository genreRepository, IPictureService pictureService, IPictureRepository pictureRepository, IArtistRepository artistRepository, IAlbumRepository albumRepository, IPurchaseRepository purchaseRepository)
 {
     this.GenreRepository    = genreRepository;
     this.PictureRepository  = pictureRepository;
     this.PictureService     = pictureService;
     this.ArtistRepository   = artistRepository;
     this.AlbumRepository    = albumRepository;
     this.PurchaseRepository = purchaseRepository;
 }
 public PictureController(IUserRepository userRepository, IPictureRepository pictureRepository, IWebHostEnvironment hostEnvironment, IFolderRepository folderRepository, ILikeRepository likeRepository)
 {
     this.userRepository    = userRepository;
     this.pictureRepository = pictureRepository;
     this.likeRepository    = likeRepository;
     _hostEnv = hostEnvironment;
     this.folderRepository = folderRepository;
     userGet = new UserGet(userRepository);
 }
Beispiel #35
0
 private void DisposeCore()
 {
     _userRepository = null;
     _likeRepository = null;
     _pictureRepository = null;
     _postRepository = null;
     _externalLoginRepository = null;
     _dbContext.Dispose();
 }
Beispiel #36
0
        public PictureService(IPictureRepository pictureRepository, IPictureStorageRepository pictureStorageRepository, FileSystemHelper fsHelper)
        {
            Ensure.That(() => pictureRepository).IsNotNull();
            Ensure.That(() => pictureStorageRepository).IsNotNull();
            Ensure.That(() => fsHelper).IsNotNull();

            this.pictureRepository = pictureRepository;
            this.pictureStorageRepository = pictureStorageRepository;
            this.fsHelper = fsHelper;
        }
 public ProfileService(IProfileRepository profileRepository, IProfileActivityRepository profileActivityRepository, ICredentialService credentialService, IActivityTypeRepository activityTypeRepository, IGrunkerRepository grunkRepository, IPictureService pictureService, IPictureRepository pictureRepository, IReviewService reviewService, IProductService productService)
 {
     this.ProfileRepository = profileRepository;
     this.CredentialService = credentialService;
     this.ProfileActivityRepository = profileActivityRepository;
     this.ActivityTypeRepository = activityTypeRepository;
     this.GrunkRepository = grunkRepository;
     this.PictureService = pictureService;
     this.PictureRepository = pictureRepository;
     this.ReviewService = reviewService;
     this.ProductService = productService;
 }
Beispiel #38
0
 public HomeController(IUserRepository userRepository,
                     IArticleRepository articleRepository,
                     IPictureRepository pictureRepository,
                     ICommentRepository commentRepository,
                     ISecurityManager sequrityManager)
 {
     this._articleRepository = articleRepository;
     this._pictureRepository = pictureRepository;
     this._sequrityManager = sequrityManager;
     this._userRepository = userRepository;
     this._commentRepository = commentRepository;
 }
        public DataManager(IUserRepository usersRepository, IFriendsRepository friendsRepository, IFriendRequestsRepository friendRequestsRepository, 
            IMessagesRepository messagesRepository, IPictureRepository pictureRepository,IMusicRepository musicRepository,IPostRepository postRepository,
            ICommentRepository commentReposiyory, PrimaryMembershipProvider provider)
        {
            this.usersRepository = usersRepository;
            this.friendsRepository = friendsRepository;
            this.friendRequestsRepository = friendRequestsRepository;
            this.messagesRepository = messagesRepository;
            this.pictureRepository = pictureRepository;
            this.musicRepository = musicRepository;

            this.provider = provider;
        }
        public MainWindowViewModel()
        {
            PlayerRepository = new PlayerRepository();
            ScoreRepository = new ScoreRepository();
            PictureRepository = new PictureRepository();
            PlayerGroupItemRepository = new PlayerGroupItemRepository();
            NewPlayer = new Player();
            PicturesToDrag = new ObservableCollection<Picture>();
            ListOfDraggedPictures = new ObservableCollection<Picture>();

            _timer.Interval = new TimeSpan(0, 0, 1);
            _timer.Tick += new EventHandler(timer_Tick);
        }
Beispiel #41
0
 public PicturesController(IPictureRepository pictureRepository, ITagRepository tagRepository)
 {
     this.pictureRepository = pictureRepository;
     this.tagRepository = tagRepository;
 }
Beispiel #42
0
 public PictureService(IPictureRepository repository, IUnitOfWork uow)
 {
     _pictureRepository = repository;
     _uow = uow;
 }
Beispiel #43
0
 public PersonInfo()
 {
     this._connectionString = ConfigurationManager.ConnectionStrings["BlogEntities"].ConnectionString;
     this._pictureRepository = new EFPictureRepository(this._connectionString);
 }
 public PictureService(IPictureRepository pictureRepository)
 {
     _pictureRepository = pictureRepository;
 }
 public void Context()
 {
     _pictureRepo = DependencyResolverHelper.GetRealDependency<IPictureRepository>();
 }
Beispiel #46
0
 public PictureService(IUnitOfWork uow, IPictureRepository repository)
 {
     this.repository = repository;
     this.uow = uow;
 }
Beispiel #47
0
 public PictureManager(IUnitOfWork uow)
 {
     this.picrepo = uow.GetPictureRepository();
 }
 public PictureController(IPictureRepository pictureRepository)
 {
     _pictureRepository = pictureRepository;
 }
 public PictureService(IUnitOfWork unitOfWork, IPictureRepository pictureRepository)
 {
     _unitOfWork = unitOfWork;
     _pictureRepository = pictureRepository;
     _logger = LogManager.GetCurrentClassLogger();
 }
 public PictureAppService(IPictureRepository pictureRepository, IUserRepository userRepository)
 {
     _pictureRepository = pictureRepository;
     _userRepository = userRepository;
 }
 public PicturesController(IPictureRepository picture_repository)
 {
     this.picture_repository = picture_repository;
 }
 protected override void Context()
 {
     m_PictureRepository = ObjectFactory.GetInstance<IPictureRepository>();
 }