private void CloneProperties(object aClone)
 {
     Articy.ManiacManfred.Features.ZoneConditionFeature newClone = ((Articy.ManiacManfred.Features.ZoneConditionFeature)(aClone));
     if ((mIfConditionTrue != null))
     {
         newClone.mIfConditionTrue = ((ArticyValueArticyObject)(mIfConditionTrue.CloneObject()));
     }
     if ((mIfConditionFalse != null))
     {
         newClone.mIfConditionFalse = ((ArticyValueArticyObject)(mIfConditionFalse.CloneObject()));
     }
     newClone.CursorIfConditionTrue  = CursorIfConditionTrue;
     newClone.CursorIfConditionFalse = CursorIfConditionFalse;
     if ((mItemToInteractWith != null))
     {
         newClone.mItemToInteractWith = ((ArticyValueArticyObject)(mItemToInteractWith.CloneObject()));
     }
     if ((mLinkIfItemValid != null))
     {
         newClone.mLinkIfItemValid = ((ArticyValueArticyObject)(mLinkIfItemValid.CloneObject()));
     }
     if ((mLinkIfItemInvalid != null))
     {
         newClone.mLinkIfItemInvalid = ((ArticyValueArticyObject)(mLinkIfItemInvalid.CloneObject()));
     }
     if ((ClickCondition != null))
     {
         newClone.ClickCondition = ((ArticyScriptCondition)(ClickCondition.CloneObject()));
     }
     if ((OnClickInstruction != null))
     {
         newClone.OnClickInstruction = ((ArticyScriptInstruction)(OnClickInstruction.CloneObject()));
     }
     if ((InteractionCondition != null))
     {
         newClone.InteractionCondition = ((ArticyScriptCondition)(InteractionCondition.CloneObject()));
     }
     if ((InstructionIfItemValid != null))
     {
         newClone.InstructionIfItemValid = ((ArticyScriptInstruction)(InstructionIfItemValid.CloneObject()));
     }
 }
 public object CloneObject()
 {
     Articy.ManiacManfred.Features.ZoneConditionFeature clone = new Articy.ManiacManfred.Features.ZoneConditionFeature();
     CloneProperties(clone);
     return(clone);
 }