Пример #1
0
 public VariableLayerCollection(LayerCollection staticLayers)
 {
     _staticLayers = staticLayers;
     if (_timer == null)
     {
         _timer          = new Timer();
         _timer.Interval = 500;
         _timer.Elapsed += new ElapsedEventHandler(TimerElapsed);
     }
 }
Пример #2
0
        private static void TestLayerPresent(LayerCollection layers, ILayer newLayer)
        {
            foreach (ILayer layer in layers)
            {
                int comparison = String.Compare(layer.LayerName,
                                                newLayer.LayerName, StringComparison.CurrentCultureIgnoreCase);

                if (comparison == 0)
                {
                    throw new DuplicateLayerException(newLayer.LayerName);
                }
            }
        }