Esempio n. 1
0
        public Job(Period period, SharedJob sharedJob)
        {
            if (period == null)
            {
                throw new ArgumentNullException("period");
            }
            period.CheckAssigningJob();
            if (sharedJob == null)
            {
                throw new ArgumentNullException("sharedJob");
            }
            id = new JobId(period.Id, sharedJob.Id);

            this.sharedJob = sharedJob;
            customFields   = new List <JobCustomField>();
            jobIndexList   = new List <JobJobIndex>();
        }
Esempio n. 2
0
 public Job(Period period, SharedJob sharedJob, IList <JobCustomField> customFieldList,
            IList <JobJobIndex> jobIndexList) : this(period, sharedJob)
 {
     assignCustomFields(customFieldList);
     assignJobIndices(jobIndexList);
 }