/// <summary> /// Updates the parent references for all child batches. Used for serialisation purposes to maintain the parent hierarchy required for propertygrid type converters. /// </summary> internal void UpdateParentReferences() { Batches.ToList().ForEach(batch => batch.UpdateParentReferences(this)); Connections.ToList().ForEach(connection => connection.UpdateParentReferences(this)); }