Exemplo n.º 1
0
        public bool PropertyEdited(string inName)
        {
            bool result = false;

            if (VD2PropertyInfos.ContainsKey(inName))
            {
                VD2PropertyInfo info = null;
                if (VD2PropertyInfos.TryGetValue(inName, out info))
                {
                    result = info.EditedByUser;
                }
            }
            return(result);
        }
Exemplo n.º 2
0
        public bool PropertyIsObjectID(string inName)
        {
            bool result = false;

            if (VD2PropertyInfos.ContainsKey(inName))
            {
                VD2PropertyInfo info = null;
                if (VD2PropertyInfos.TryGetValue(inName, out info))
                {
                    result = info.IsObjectID;
                }
            }
            return(result);
        }
Exemplo n.º 3
0
        public bool PropertyExistsInBaseData(string inName)
        {
            bool result = false;

            if (VD2PropertyInfos.ContainsKey(inName))
            {
                VD2PropertyInfo info = null;
                if (VD2PropertyInfos.TryGetValue(inName, out info))
                {
                    result = info.ExistsInBaseData;
                }
            }
            return(result);
        }
Exemplo n.º 4
0
        public bool PropertyIsCollection(string inName, out Type outElementType)
        {
            bool result      = false;
            Type elementtype = typeof(object);

            if (VD2PropertyInfos.ContainsKey(inName))
            {
                VD2PropertyInfo info = null;
                if (VD2PropertyInfos.TryGetValue(inName, out info))
                {
                    result      = info.IsCollection;
                    elementtype = info.CollectionElementType;
                }
            }
            outElementType = elementtype;
            return(result);
        }
Exemplo n.º 5
0
        public bool PropertyIsObjectIDRef(string inName, out List <string> outRefTypes)
        {
            bool          result   = false;
            List <string> reftypes = new List <string>();

            if (VD2PropertyInfos.ContainsKey(inName))
            {
                VD2PropertyInfo info = null;
                if (VD2PropertyInfos.TryGetValue(inName, out info))
                {
                    result = info.IsObjectIDRef;
                    reftypes.AddRange(info.ObjectIDRefTypes);
                }
            }
            outRefTypes = reftypes;
            return(result);
        }