Ejemplo n.º 1
0
 public static dynamic GetTSObject(IRelatedObjects dynObject)
 {
     if (dynObject is null)
     {
         return(null);
     }
     return(dynObject.teklaObject);
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 private void comboBoxLink_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     _relatedObjects = LinkManager.GetLinkRelatedRectangles(((ComboboxItem)comboBoxLink.SelectedItem).Value);
     mainLayer.Invalidate();
 }