private static ITypeSelector GetTypeSelector(Type parameterType)
        {
            ITypeSelector typeSelector = null;
            if (parameterType.Equals(typeof(object)))
            {
                typeSelector = new FullTypeSelector();
            }
            else
            {
                typeSelector = new TypeSelector() { BaseType = parameterType };
                //typeSelector.BaseType = parameterType;
            }

            typeSelector.Title = "Choose the type to instantiate";
            typeSelector.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            return typeSelector;
        }
Exemple #2
0
        static ITypeSelector GetTypeSelector(Type parameterType)
        {
            ITypeSelector typeSelector = null;

            if (parameterType.Equals(typeof(object)))
            {
                typeSelector = new FullTypeSelector();
            }
            else
            {
                typeSelector = new TypeSelector {
                    BaseType = parameterType
                };
                //typeSelector.BaseType = parameterType;
            }

            typeSelector.Title = "Choose the type to instantiate";
            typeSelector.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            return(typeSelector);
        }