public void AddLayer(LayerDef layerDef) { if (!_layerList.Contains(layerDef.ID)) { _layerList.Add(layerDef); } }
public bool AddLayer(StreamDeckLayer streamDeckLayer) { if (streamDeckLayer == null || string.IsNullOrEmpty(streamDeckLayer.Name)) { return(false); } if (!LayerList.Contains(streamDeckLayer)) { LayerList.Add(streamDeckLayer); } SetActiveLayer(streamDeckLayer.Name); return(true); }