Пример #1
0
 public virtual void RemoveProductionLeg(ProductionLeg leg)
 {
     productionLegList.Remove(leg);
 }
Пример #2
0
        public virtual ProductionLeg AddProductionLeg(DateTime productionStart, long counterStart)
        {
            if (productionLegList.Count > 0 && productionStart < ProductionEnd)
                throw new ArgumentException("The leg can not start in the middle of an existing leg", "productionStart");

            ProductionLeg leg = new ProductionLeg(this, productionStart, counterStart);
            productionLegList.Add(leg);

            return leg;
        }