public static LoadFromResources ( Component component, string resourcePath ) : bool | ||
component | Component | |
resourcePath | string | |
return | bool |
public static vp_ComponentPreset LoadFromResources(Component component, string resourcePath) { vp_ComponentPreset vp_ComponentPreset = new vp_ComponentPreset(); vp_ComponentPreset.LoadFromResources(resourcePath); vp_ComponentPreset.Apply(component, vp_ComponentPreset); return(vp_ComponentPreset); }
/// <summary> /// static overload: creates and loads a preset and sets all /// the values on 'component', then returns the preset /// </summary> public static vp_ComponentPreset LoadFromResources(vp_Component component, string resourcePath) { vp_ComponentPreset preset = new vp_ComponentPreset(); preset.LoadFromResources(resourcePath); Apply(component, preset); return preset; }