public void NewLayer() { Layer layer = new Layer(); ListOfLayer.Add(layer); LayerDisplays.Add(new LayerDisplay(layer, "Layer " + index.ToString())); index++; currentLayer = ListOfLayer.Count - 1; }
public void DeleteLayer(int position) { ListOfLayer.RemoveAt(position); LayerDisplays.RemoveAt(position); }