Example #1
0
 private void updateProperty(PropertyManipulator property, FLAGS flag)
 {
     if (isHidden(flag))
     {
         Manipulator.HideShowProperty(property, false);
     }
     else
     {
         Manipulator.HideShowProperty(property, true);
     }
 }
Example #2
0
 private void updateReadOnlyProperty(PropertyManipulator property, bool isReadOnly)
 {
     if (isReadOnly)
     {
         Manipulator.HideShowProperty(property, false);
         Manipulator.HideShowProperty(property.GetReadonlyPropLookup(), true);
     }
     else
     {
         Manipulator.HideShowProperty(property, true);
         Manipulator.HideShowProperty(property.GetReadonlyPropLookup(), false);
     }
 }
        private TItem AdjustProperties <TItem>(TItem item, Content content) where TItem : BaseItem
        {
            if (PropertyManipulator != null)
            {
                Action <BaseItem> action;

                if (PropertyManipulator.TryGetValue(content, out action))
                {
                    action(item);
                }
            }

            return(item);
        }
Example #4
0
            static PLArray()
            {
                var Fields = typeof(PROP).GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
                var Temp = new PropertyManipulator[Fields.Length];
                int i, n, P = 0;

                for (i = 0, n = Fields.Length, P = 0; i < n; ++i)
                {
                    if (Fields[i].FieldType == typeof(PropertyManipulator))
                    {
                        Temp[P++] = (PropertyManipulator)Fields[i].GetValue(null);
                    }
                }
                if (n != P)
                {
                    System.Array.Resize(ref Temp, P);
                }

                All = Temp;
            }