예제 #1
0
        // Add layer button clicked
        private void addLayerButton_Click(object sender, EventArgs e)
        {
            Debug.Assert(layersTreeView.SelectedNode is LayerNode);

            SelectMaterialLayerType newLayerForm = new SelectMaterialLayerType();

            if (newLayerForm.ShowDialog() == DialogResult.OK)
            {
                LayerNode     node     = layersTreeView.SelectedNode as LayerNode;
                MaterialLayer newLayer = EditorMaterialLayer.create(newLayerForm.getSelectedType());
                addNewLayer(newLayer);
            }
        }
예제 #2
0
        // Add layer button clicked
        private void addLayerButton_Click(object sender, EventArgs e)
        {
            Debug.Assert(layersTreeView.SelectedNode is LayerNode);

            SelectMaterialLayerType newLayerForm = new SelectMaterialLayerType();
            if (newLayerForm.ShowDialog() == DialogResult.OK)
            {
                LayerNode node = layersTreeView.SelectedNode as LayerNode;
                MaterialLayer newLayer = EditorMaterialLayer.create(newLayerForm.getSelectedType());
                addNewLayer(newLayer);
            }
        }