//===================================================================== /// <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); }
/// <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); } }
//===================================================================== /// <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; }