예제 #1
0
        public string GenerateUniqueSubKeyName()
        {
            int i = 1;

            for (;;)
            {
                string name = string.Format("NewKey{0}", i);
                if (!SubItems.Any(si => si.Text.Equals(name, StringComparison.InvariantCultureIgnoreCase)))
                {
                    return(name);
                }
                ++i;
            }
        }