Пример #1
0
        public ReportCreatorForm(BusinessDayRepository businessDayRepository, PersonRepository personRepository)
            : this()
        {
            if (businessDayRepository == null)
                throw new ArgumentNullException(nameof(businessDayRepository));
            if (personRepository == null)
                throw new ArgumentNullException(nameof(personRepository));

            BusinessDayRepository = businessDayRepository;
            PersonRepository = personRepository;
        }
Пример #2
0
        public BusinessDayEditorForm(BusinessDayRepository businessDayRepository, PersonRepository personRepository)
            : this()
        {
            if (personRepository == null)
                throw new ArgumentNullException(nameof(personRepository));
            if (businessDayRepository == null)
                throw new ArgumentNullException(nameof(businessDayRepository));

            this.personRepository = personRepository;
            this.businessDayRepository = businessDayRepository;
            personCollectionControl1.SetCollection(personRepository.Entities);
        }