/// <summary> /// Copies values from the target object to the /// current object. /// </summary> virtual public void CopyFrom(ICopyable obj) { if (obj is ICalendarDataType) { ICalendarDataType dt = (ICalendarDataType)obj; _AssociatedObject = dt.AssociatedObject; _Proxy.SetParent(_AssociatedObject); _Proxy.SetProxiedObject(dt.Parameters); } }
/// <summary> /// Copies values from the target object to the /// current object. /// </summary> /// <param name="obj"></param> public virtual void CopyFrom(ICopyable obj) { var calendarDataType = obj as ICalendarDataType; if (calendarDataType != null) { ICalendarDataType dt = calendarDataType; AssociatedObjectMember = dt.AssociatedObject; _proxy.SetParent(AssociatedObjectMember); _proxy.SetProxiedObject(dt.Parameters); } }