public void DeleteHiddenLayer(LayerViewModel l) { if (HiddenLayers.Contains(l)) { HiddenLayers.Remove(l); for (int i = 0; i < HiddenLayers.Count; i++) { HiddenLayers[i].Number = i + 1; } } CanCreateChanged?.Invoke(); }