Example #1
0
        public static void Set(Icon icon, string p)
        {
            string p2;
            GetPar(ref p, out p2);
            if (p2 != null) p = p2;

            if (p != null) {
                var tokens = p.SplitList(';');
                foreach (var token in tokens) {
                    try {
                        var expr = token.Split('=');
                        var prop = expr[0];
                        var val = expr[1];
                        icon.Property(prop).Value = val;
                    } catch { }
                }
            }
        }
Example #2
0
 public static string Name(Icon icon)
 {
     return Name(icon.GetType());
 }