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; }
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); }