Esempio n. 1
0
        public void SetStyle(string style)
        {
            if (string.IsNullOrEmpty(style))
            {
                throw new ArgumentException("style can't be empty");
            }

            if (style[0] == '!')
            {
                styles = styles.Remove(style.Substring(1));
            }
            else
            {
                styles = styles.Add(style);
            }
            handler.SetStyles(Backend, styles);
        }
 public static void ClearGlobalStyle(string style)
 {
     globalStyles = globalStyles.Remove(style);
     NotifyGlobalStylesChanged();
 }