/// <summary> /// Clones the Batch. /// </summary> /// <returns>The cloned Batch.</returns> public Batch Clone() { Batch clone = (Batch)MemberwiseClone(); clone.ID = Guid.NewGuid(); clone.Name = string.Concat(Name, Properties.Resources.BatchCopy); clone.Operations = new BindingList <IOperation>(Operations.Select(operation => operation.Clone(false)).ToList()); clone.UpdateParentReferences(ParentProject); return(clone); }