Example #1
0
        public static bool DisplayInViewSpace(FieldInfo field)
        {
            DisplayInViewSpaceAttribute attr = field.GetCustomAttribute <DisplayInViewSpaceAttribute>();

            if (attr != null)
            {
                return(attr.ViewSpace);
            }
            else
            {
                return(true);
            }
        }
 public OrientationSetting(Orientation value, FieldInfo field, string group)
     : base(field, SettingType.Orientation, group)
 {
     Value = value;
     DisplayInViewSpace = DisplayInViewSpaceAttribute.DisplayInViewSpace(field);
 }