/// <summary> /// Copy data /// </summary> /// <param name="value">Source value</param> protected virtual void SetData(NtBusinessNeed value) { Connection = value.Connection; ID = value.ID; EntityID = value.EntityID; Title = (string)value.Title.Clone(); Description = (string)value.Description; Author = (string)value.Author; Edition = value.Edition; Created = value.Created; Modified = value.Modified; m_ClassificationItems.Clear(); foreach (Guid gid in value.ClassificationItemIDs) ClassificationItemIDs.Add(gid); m_bNew = value.m_bNew; m_bChanged = value.m_bChanged; m_bClassificationItemsChanged = value.m_bClassificationItemsChanged; }
/// <summary> /// Clone object /// </summary> /// <returns>New object instance</returns> public object Clone() { NtBusinessNeed bn = new NtBusinessNeed(); bn.SetData(this); return bn; }