Пример #1
0
        static void Get(string key, ref PackedCol col)
        {
            PackedCol defaultCol = col;
            string    value      = Options.Get(key, null);

            if (String.IsNullOrEmpty(value))
            {
                return;
            }

            if (!PackedCol.TryParse(value, out col))
            {
                col = defaultCol;
            }
        }
Пример #2
0
        public override bool IsValidValue(string s)
        {
            PackedCol col;

            return(PackedCol.TryParse(s, out col));
        }