コード例 #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);
        }
コード例 #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);
        }
コード例 #3
0
        private void PropertyControl_RemoveLayer(string LayerName)
        {
            Layerstack currentLayerStack = (selectedNode as Workstation).Layerstack;

            currentLayerStack.RemoveLayer(LayerName);
        }