//------------------------------------------------------------------------- // Set the selected layer index //------------------------------------------------------------------------- public void SetActiveLayerControl(int layerIndex) { // Deactivate the currently selected layer if (selectedLayerControl != null) { selectedLayerControl.LayerDeactivated(); } // Set the currently selected layer to the new layer selectedLayerControl = (LayerControl)LayerDisplayPanel.Controls[layerIndex]; // Activate the newly selected layer selectedLayerControl.LayerActivated(); }
//------------------------------------------------------------------------- // Set the selected layer //------------------------------------------------------------------------- public void SetActiveLayerControl(LayerControl layerControl) { // Deactivate the currently selected layer if (selectedLayerControl != null) { selectedLayerControl.LayerDeactivated(); } // Activate the newly selected layer layerControl.LayerActivated(); // Set the currently selected layer to the new layer selectedLayerControl = layerControl; }
//------------------------------------------------------------------------- // Set the selected layer //------------------------------------------------------------------------- public void SetActiveLayerControl(LayerControl layerControl) { // Deactivate the currently selected layer if (selectedLayerControl != null) selectedLayerControl.LayerDeactivated(); // Activate the newly selected layer layerControl.LayerActivated(); // Set the currently selected layer to the new layer selectedLayerControl = layerControl; }
//------------------------------------------------------------------------- // Set the selected layer index //------------------------------------------------------------------------- public void SetActiveLayerControl(int layerIndex) { // Deactivate the currently selected layer if (selectedLayerControl != null) selectedLayerControl.LayerDeactivated(); // Set the currently selected layer to the new layer selectedLayerControl = (LayerControl)LayerDisplayPanel.Controls[layerIndex]; // Activate the newly selected layer selectedLayerControl.LayerActivated(); }