public static bool IsDataAttribute(Property_Attribute attribute)
 {
     return(attribute == Property_Attribute.Toggle ||
            attribute == Property_Attribute.Enum ||
            attribute == Property_Attribute.KeywordEnum ||
            attribute == Property_Attribute.PowerSlider ||
            attribute == Property_Attribute.Space ||
            attribute == Property_Attribute.Header);
 }
 public static string PropertyAttribute(Property_Attribute attribute, string data = null)
 {
     if (IsDataAttribute(attribute))
     {
         if (string.IsNullOrEmpty(data))
         {
             return(string.Format("[{0}]", attribute.ToString()));
         }
         else
         {
             return(string.Format("[{0}({1})]", attribute.ToString(), data));
         }
     }
     else
     {
         return(string.Format("[{0}]", attribute.ToString()));
     }
 }