//===================================================================== /// <summary> /// Add a <see cref="FreeBusyProperty"/> to the collection and assign it the specified type and period /// </summary> /// <param name="type">The type to assign to the new property</param> /// <param name="p">The period value to assign to the new property</param> /// <returns>Returns the new property that was created and added to the collection</returns> public FreeBusyProperty Add(FreeBusyType type, Period p) { FreeBusyProperty fb = new FreeBusyProperty { FreeBusyType = type, PeriodValue = p }; base.Add(fb); return(fb); }
/// <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) { FreeBusyProperty fbp = (FreeBusyProperty)p; freeBusyType = fbp.FreeBusyType; if (freeBusyType == FreeBusyType.Other) { otherType = fbp.OtherType; } else { otherType = null; } base.Clone(p); }
/// <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) { FreeBusyProperty fbp = (FreeBusyProperty)p; freeBusyType = fbp.FreeBusyType; if(freeBusyType == FreeBusyType.Other) otherType = fbp.OtherType; else otherType = null; base.Clone(p); }