コード例 #1
0
ファイル: Unit.cs プロジェクト: mehabadi/HPMS
 public Unit(Period period, SharedUnit sharedUnit, IList <UnitCustomField> customFieldList,
             IList <UnitUnitIndex> unitIndexList, Unit parent)
     : this(period, sharedUnit, parent)
 {
     assignCustomFields(customFieldList);
     assignunitIndices(unitIndexList);
 }
コード例 #2
0
ファイル: Unit.cs プロジェクト: mehabadi/HPMS
 public Unit(Period period, SharedUnit sharedUnit, Unit parent)
 {
     if (period == null || period.Id == null)
     {
         throw new ArgumentNullException("period");
     }
     if (sharedUnit == null || sharedUnit.Id == null)
     {
         throw new ArgumentNullException("sharedUnit");
     }
     period.CheckAssigningUnit();
     id = new UnitId(period.Id, sharedUnit.Id);
     this.sharedUnit = sharedUnit;
     this.parent     = parent;
     customFields    = new List <UnitCustomField>();
     unitIndexList   = new List <UnitUnitIndex>();
 }