private void layerView_SelectionChanged(object sender, EventArgs e) { TreeNodeAdv viewNode = this.layerView.SelectedNode; LayerSelectionChangedEventArgs args = new LayerSelectionChangedEventArgs(viewNode); this.buttonRemoveLayer.Enabled = (viewNode != null); if (this.activeMode != null) { this.activeMode.RaiseOnLayerSelectionChanged(args); } }
private void Node_LayerSelectionChanged(object sender, LayerSelectionChangedEventArgs e) { OnLayerSelectionChanged(e); }