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; }
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); }