private void PropertyControl_AddLayer() { Layerstack currentLayerStack = (selectedNode as Workstation).Layerstack; CustomLayer newCustomLayer = new CustomLayer(currentLayerStack.CreateUniqueName(), currentLayerStack.GetSize() - 1); currentLayerStack.AddLayer(newCustomLayer); propertyControl.AddLayerToLayerConfigControl(newCustomLayer.GetLayerName(), true); }
private void PropertyControl_LayerIndexChanged(string LayerName, int Index) { var selectedStation = selectedNode as Workstation; if (selectedStation == null) { throw new InvalidOperationException(); } Layerstack layers = selectedStation.Layerstack; layers.SetIndex(LayerName, Index); }
private void PropertyControl_RemoveLayer(string LayerName) { Layerstack currentLayerStack = (selectedNode as Workstation).Layerstack; currentLayerStack.RemoveLayer(LayerName); }