Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        private void PropertyControl_RemoveLayer(string LayerName)
        {
            Layerstack currentLayerStack = (selectedNode as Workstation).Layerstack;

            currentLayerStack.RemoveLayer(LayerName);
        }