public override bool IsVisible()
        {
            CompareVisibleAttribute attr = GetAttr <CompareVisibleAttribute>();

            object value = attr.Value;

            if (!string.IsNullOrEmpty(attr.MemberName))
            {
                value = DrawerUtility.GetMemberValue(attr.MemberName, Property.Target);
            }
            return(DrawerUtility.Compare(Property.Value, value, attr.Symbol));
        }
Beispiel #2
0
        public override bool IsVisible()
        {
            CompareVisibleAttribute attr = GetAttr <CompareVisibleAttribute>();

            if (string.IsNullOrEmpty(attr.MemberName))
            {
                return(false);
            }
            else
            {
                SystemObject result = DrawerUtility.GetMemberValue(attr.MemberName, ItemDrawer.Target);
                return(DrawerUtility.Compare(result, attr.Value, attr.Symbol));
            }
        }