Esempio n. 1
0
        public static LabelBase GetInstance(string labelName)
        {
            var type     = FactoryBase.GetType(GetClassNames(labelName).ToArray());
            var instance = FactoryBase.CreateInstance <LabelBase>(type, null);

            if (instance != null)
            {
                instance.LabelName = labelName;
            }
            return(instance);
        }
Esempio n. 2
0
        public static Field GetInstance(string labelName, string fieldName)
        {
            var type = FactoryBase.GetType(GetClassNames(labelName, fieldName).ToArray());

            return(FactoryBase.CreateInstance <Field>(type, new Field()));
        }
        public static FieldParameter GetInstance(string labelName, string parameterName)
        {
            var type = FactoryBase.GetType(GetClassNames(labelName, parameterName).ToArray());

            return(FactoryBase.CreateInstance <FieldParameter>(type, new FieldParameter()));
        }