/// <summary> /// Registered factory creation method /// </summary> /// <param name="aArgs"> /// Arguments <see cref="FactoryInvocationArgs"/> /// </param> /// <returns> /// Result widget <see cref="IAdaptableControl"/> /// </returns> public static IAdaptableControl DefaultFactoryCreate (FactoryInvocationArgs aArgs) { IAdaptableControl wdg; if (aArgs.State == PropertyDefinition.ReadOnly) wdg = new DataLabel(); else wdg = new DataRadioGroup(); wdg.Mappings = aArgs.PropertyName; return (wdg); }
/// <summary> /// Registered factory creation method /// </summary> /// <param name="aArgs"> /// Arguments <see cref="FactoryInvocationArgs"/> /// </param> /// <returns> /// Result widget <see cref="IAdaptableControl"/> /// </returns> public static IAdaptableControl DefaultFactoryCreate(FactoryInvocationArgs aArgs) { IAdaptableControl wdg; if (aArgs.State == PropertyDefinition.ReadOnly) { wdg = new DataLabel(); } else { wdg = new DataRadioGroup(); } wdg.Mappings = aArgs.PropertyName; return(wdg); }