Esempio n. 1
0
 public CamPlanStep(CamPlanStep cps) : base(cps.Action)
 {
     if (cps.CamDetails != null)
     {
         CamDetails = cps.CamDetails.Clone();
     }
     if (cps.TargetDetails != null)
     {
         TargetDetails = cps.TargetDetails.Clone();
     }
     if (cps.CamObject != null)
     {
         CamObject = cps.CamObject;
     }
     //directive = cps.directive;
 }
Esempio n. 2
0
        public new System.Object Clone()
        {
            var newstep = new CamPlanStep(base.Clone() as PlanStep, ID);

            if (CamDetails != null)
            {
                newstep.CamDetails = CamDetails.Clone();
            }
            if (TargetDetails != null)
            {
                newstep.TargetDetails = TargetDetails.Clone();
            }

            //newstep.directive = directive;

            return(newstep);
        }