public static dynamic GetTSObject(IRelatedObjects dynObject) { if (dynObject is null) { return(null); } return(dynObject.teklaObject); }
public MainWindow() { InitializeComponent(); comboBoxLink.Items.Add(new ComboboxItem { Text = "Hard link", Value = LinkType.Hard}); comboBoxLink.Items.Add(new ComboboxItem { Text = "Flexible link", Value = LinkType.Flexible}); _relatedObjects = LinkManager.GetLinkRelatedRectangles(LinkType.Hard); }
private void comboBoxLink_SelectedIndexChanged(object sender, System.EventArgs e) { _relatedObjects = LinkManager.GetLinkRelatedRectangles(((ComboboxItem)comboBoxLink.SelectedItem).Value); mainLayer.Invalidate(); }