Esempio n. 1
0
File: VAlarm.cs Progetto: ywscr/PDI
        /// <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;
        }
Esempio n. 2
0
File: VAlarm.cs Progetto: ywscr/PDI
        /// <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);
        }
 set => SetValue(RepeatProperty, value);