//===================================================================== /// <summary> /// This is overridden to allow cloning of a PDI object /// </summary> /// <returns>A clone of the object</returns> public override object Clone() { ActionProperty o = new ActionProperty(); o.Clone(this); return(o); }
//===================================================================== /// <summary> /// This is overridden to allow cloning of a PDI object /// </summary> /// <returns>A clone of the object</returns> public override object Clone() { ActionProperty o = new ActionProperty(); o.Clone(this); return o; }
/// <summary> /// The method can be called to clear all current property values from the alarm. The version is left /// unchanged. /// </summary> public override void ClearProperties() { action = null; trigger = null; repeat = null; duration = null; summary = null; desc = null; attendees = null; attachments = null; customProps = null; }
/// <summary> /// This is overridden to allow copying of the additional properties /// </summary> /// <param name="p">The PDI object from which the settings are to be copied</param> protected override void Clone(PDIObject p) { VAlarm o = (VAlarm)p; this.ClearProperties(); action = (ActionProperty)o.Action.Clone(); trigger = (TriggerProperty)o.Trigger.Clone(); repeat = (RepeatProperty)o.Repeat.Clone(); duration = (DurationProperty)o.Duration.Clone(); summary = (SummaryProperty)o.Summary.Clone(); desc = (DescriptionProperty)o.Description.Clone(); this.Attendees.CloneRange(o.Attendees); this.Attachments.CloneRange(o.Attachments); this.CustomProperties.CloneRange(o.CustomProperties); }