/// <summary> /// Удалить выбраннй слой /// </summary> public void DeleteSelectedLayer() { RevercedLayerList.Remove(SelectedLayer); LayerList.Remove(SelectedLayer); SelectedLayer.Destroy(); SelectedLayer = null; ChooseLayer(RevercedLayerList[0]); }
/// <summary> /// Removes a layer from the layer list /// </summary> /// <param name="name">Name of layer to remove</param> public void RemoveLayer(string name) { LayerList.Remove(name); }