public int GetLayerIndex(string layerName) { for (int i = 0; i < GraphicsLayers.Count(); i++) { if (GraphicsLayers.ElementAt(i) == layerName) { return(i); } } return(-1); }
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(); }
public void AddLayer(int index, string layer) { GraphicsLayers.Insert(index, layer); InvalidateDraw(); }
public void AddLayer(string layer) { GraphicsLayers.Add(layer); InvalidateDraw(); }