Hi,
I've found some small bugs in the code u sugested: If it happens to try copying the service without any change in it's layers, it behaves as if the service was unshown, but the default visibility is enabled! Also, if i deactivate an service, and have a Layer unchecked on the list (in other words, also deactivated) it keeps showing the two activated layers of that service.
One more thing, could you explain to me how this lines works? When my boss asked me, i couldn't explain well.
List<int> visibleLayerList = OriginLayer.VisibleLayers != null ? OriginLayer.VisibleLayers.ToList() : new List<int>();
thanks a lot!