Пример #1
0
 /// <summary>
 /// Clones this WorkflowActionForm object to a new WorkflowActionForm object
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="deepCopy">if set to <c>true</c> a deep copy is made. If false, only the basic entity properties are copied.</param>
 /// <returns></returns>
 public static WorkflowActionForm Clone(this WorkflowActionForm source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as WorkflowActionForm);
     }
     else
     {
         var target = new WorkflowActionForm();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
 /// <summary>
 /// Copies the properties from another WorkflowActionForm object to this WorkflowActionForm object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this WorkflowActionForm target, WorkflowActionForm source)
 {
     target.Id = source.Id;
     target.ActionAttributeGuid = source.ActionAttributeGuid;
     target.Actions             = source.Actions;
     target.AllowNotes          = source.AllowNotes;
     target.Footer = source.Footer;
     target.Header = source.Header;
     target.IncludeActionsInNotification = source.IncludeActionsInNotification;
     target.NotificationSystemEmailId    = source.NotificationSystemEmailId;
     target.CreatedDateTime         = source.CreatedDateTime;
     target.ModifiedDateTime        = source.ModifiedDateTime;
     target.CreatedByPersonAliasId  = source.CreatedByPersonAliasId;
     target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     target.Guid      = source.Guid;
     target.ForeignId = source.ForeignId;
 }