protected ComponentWrapper GetComponent(ComponentWrapper component) { ComponentWrapper rescomponent = this.FindComponent(component.Guid); if (rescomponent != null) { ComponentWrapper.Copy(rescomponent, component); } return(rescomponent); }
protected CollectionWrapper <ComponentWrapper, MFComponent> GetComponents(CollectionWrapper <ComponentWrapper, MFComponent> components) { Collection <ComponentWrapper> result = new Collection <ComponentWrapper>(); foreach (ComponentWrapper component in components) { ComponentWrapper rescomponent = this.FindComponent(component.Guid); if (rescomponent != null) { ComponentWrapper.Copy(rescomponent, component); result.Add(rescomponent); } } return(result); }