Beispiel #1
0
        public int GetLayerIndex(string layerName)
        {
            for (int i = 0; i < GraphicsLayers.Count(); i++)
            {
                if (GraphicsLayers.ElementAt(i) == layerName)
                {
                    return(i);
                }
            }

            return(-1);
        }
Beispiel #2
0
        public void RemoveLayer(string layerName)
        {
            for (int i = 0; i < GraphicsLayers.Count(); i++)
            {
                if (GraphicsLayers.ElementAt(i) == layerName)
                {
                    GraphicsLayers.RemoveAt(i);

                    InvalidateDraw();

                    break;
                }
            }
        }
Beispiel #3
0
        public void RemoveLayer(int index)
        {
            GraphicsLayers.RemoveAt(index);

            InvalidateDraw();
        }
Beispiel #4
0
        public void AddLayer(int index, string layer)
        {
            GraphicsLayers.Insert(index, layer);

            InvalidateDraw();
        }
Beispiel #5
0
        public void AddLayer(string layer)
        {
            GraphicsLayers.Add(layer);

            InvalidateDraw();
        }