public CopyParametersTo ( |
||
instance | ||
return | void |
public void CopyParametersTo( OverlayElement instance )
{
foreach ( IPropertyCommand command in Commands )
{
string srcValue = command.Get( this );
command.Set( instance, srcValue );
}
}
/// <summary> /// Copys data from the template element to this element to clone it. /// </summary> /// <param name="template"></param> /// <returns></returns> public virtual void CopyFromTemplate( OverlayElement template ) { template.CopyParametersTo( this ); sourceTemplate = template; }