/// <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 DataProgressBar();
			else
				wdg = new DataSpinButton(0, 100, 1);
			wdg.Mappings = aArgs.PropertyName;
			return (wdg);
		}
Ejemplo n.º 2
0
        /// <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 DataProgressBar();
            }
            else
            {
                wdg = new DataSpinButton(0, 100, 1);
            }
            wdg.Mappings = aArgs.PropertyName;
            return(wdg);
        }