예제 #1
0
        //=====================================================================

        /// <summary>
        /// This is overridden to allow cloning of a PDI object
        /// </summary>
        /// <returns>A clone of the object</returns>
        public override object Clone()
        {
            ExDateProperty o = new ExDateProperty();

            o.Clone(this);
            return(o);
        }
예제 #2
0
        /// <summary>
        /// Update the exception rule and exception date collections with the dialog control values
        /// </summary>
        /// <param name="er">The exception rules collection to update</param>
        /// <param name="ed">The exception dates collection to update</param>
        /// <remarks>Note that the time zone ID will need to be set in the returned EXDATE property collection to
        /// make sure that it is consistent with the containing component.</remarks>
        public void GetValues(RRulePropertyCollection er, ExDatePropertyCollection ed)
        {
            er.Clear();
            ed.Clear();
            er.CloneRange(rRules);

            // Convert the RDates to ExDate format
            foreach (RDateProperty rdate in rDates)
            {
                ExDateProperty edate = new ExDateProperty();
                edate.ValueLocation    = rdate.ValueLocation;
                edate.TimeZoneId       = rdate.TimeZoneId;
                edate.TimeZoneDateTime = rdate.TimeZoneDateTime;
                ed.Add(edate);
            }
        }
예제 #3
0
        //=====================================================================

        /// <summary>
        /// This is overridden to allow cloning of a PDI object
        /// </summary>
        /// <returns>A clone of the object</returns>
        public override object Clone()
        {
            ExDateProperty o = new ExDateProperty();
            o.Clone(this);
            return o;
        }