Exemple #1
0
        public static bool IsSet(TweakableUIFlags flag, ITweakerObject tweakable)
        {
            bool result = false;
            TweakableUIFlagsAttribute customAttribute = tweakable.GetCustomAttribute <TweakableUIFlagsAttribute>();

            if (customAttribute != null)
            {
                result = (customAttribute.Flags & flag) == flag;
            }
            return(result);
        }
Exemple #2
0
 public TweakableUIFlagsAttribute(TweakableUIFlags flags)
 {
     Flags = flags;
 }