예제 #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;
 }
예제 #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);
        }