CSharpGL.FormSelectType.FormSelectType C# (CSharp) Method

FormSelectType() public method

Select a type from all types that derived from specified base type.
public FormSelectType ( Type baseType, bool forceReload = false, bool>.Func addtionalFilter = null ) : System
baseType System.Type base type.
forceReload bool reload types that derived from specified base type. /// Set this to true if new assemblies loaded or old assemblies removed.
addtionalFilter bool>.Func addtional filter.
return System
        public FormSelectType(Type baseType, bool forceReload = false, Func<Type, bool> addtionalFilter = null)
        {
            InitializeComponent();

            this.baseType = baseType;
            this.forceReload = forceReload;
            if (addtionalFilter == null)
            {
                this.addtionalFilter = x => !x.IsAbstract;
            }
            else
            {
                this.addtionalFilter = addtionalFilter;
            }

            this.Text = string.Format("Select type derived from {0}", baseType);
        }