protected override void CloneProperties(Behaviac.Design.Attachments.Attachment newattach) { base.CloneProperties(newattach); Event prec = (Event)newattach; if (this._event != null) { prec._event = (MethodDef)this._event.Clone(); } if (this._referencedBehavior != null) { prec._referencedBehavior = this._referencedBehavior; } prec._bTriggeredOnce = this._bTriggeredOnce; // Clone the Pars. prec.Pars.Clear(); foreach (ParInfo par in this.Pars) { prec.Pars.Add(par.Clone()); } }
private void ExportPars(StreamWriter file, string nodeName, Behaviac.Design.Attachments.Attachment attachment, string indent) { Behaviac.Design.Attachments.Event evt = attachment as Behaviac.Design.Attachments.Event; if (evt != null) { ExportPars(file, nodeName, evt.Pars, indent); } }
protected override void CloneProperties(Behaviac.Design.Attachments.Attachment newattach) { base.CloneProperties(newattach); Event prec = (Event)newattach; if (this._referencedBehavior != null) { prec._referencedBehavior = this._referencedBehavior; } prec._bTriggeredOnce = this._bTriggeredOnce; if (this._task != null) { prec._task = (MethodDef)this._task.Clone(); } }
protected override void CloneProperties(Behaviac.Design.Attachments.Attachment newattach) { base.CloneProperties(newattach); AttachAction prec = (AttachAction)newattach; if (_opl != null) { prec._opl = (RightValueDef)_opl.Clone(); } if (_opr1 != null) { prec._opr1 = (RightValueDef)_opr1.Clone(); } prec._operator = _operator; if (_opr2 != null) { prec._opr2 = (RightValueDef)_opr2.Clone(); } }