Example #1
0
        internal static string GenerateUniqueName(string prefix, RuntimeMapLayerCollection layers)
        {
            int    counter = 0;
            string name    = prefix;

            while (layers[name] != null)
            {
                counter++;
                name = prefix + counter;
            }
            return(name);
        }
Example #2
0
 internal static string GenerateUniqueName(string prefix, RuntimeMapLayerCollection layers)
 {
     int counter = 0;
     string name = prefix;
     while (layers[name] != null)
     {
         counter++;
         name = prefix + counter;
     }
     return name;
 }