public void RemoveLayer(string layerName) { for (int i = 0; i < GraphicsLayers.Count(); i++) { if (GraphicsLayers.ElementAt(i) == layerName) { GraphicsLayers.RemoveAt(i); InvalidateDraw(); break; } } }
public void RemoveLayer(int index) { GraphicsLayers.RemoveAt(index); InvalidateDraw(); }