private void bridgeTargetsComboBox_SelectedIndexChanged(object sender, System.EventArgs e) { if (EventsHandlingPaused) { return; } if (bridgeTargetsComboBox.SelectedIndex == -1) { return; } // get the selection anchor as bridgeable INBridgeableShape bridgeable = (view.Selection.AnchorNode as INBridgeableShape); if (bridgeable == null) { return; } // change the bridge targes bridgeable.BridgeTargets = (BridgeTargets)bridgeTargetsComboBox.SelectedItem; // refresh the document views document.SmartRefreshAllViews(); }
private void EventSinkService_NodeSelected(NNodeEventArgs args) { INBridgeableShape bridgeable = (args.Node as INBridgeableShape); if (bridgeable == null) { return; } selectedBridgeableStrokeGroup.Enabled = true; bridgeTargetsComboBox.SelectedItem = bridgeable.BridgeTargets; }