Several things in here.
To See issue:
Run the Form
2 buttons on top, the one the right doesn't work, the one on the left does
link the controls
Bunch of things here:
1. Should be able to link through the shapes directly by creating a new
connection
No ability to add the connection to the diagram, though.
Note that there ARE changes from the downloaded code include here! In
particular:
Now can go through all the shapes in the sample app w/:
Netron.NetronLight.ClassShape zRetVal = null;
#region Search for existing shape, see if order already there
foreach (object obj in
diagramControl1.Controller.Model.Shapes)
{
// Cast to the type we need to check against
ClassShape objCheck = obj as ClassShape;
if (objCheck != null)
{
// Have the correct type of control
if (objCheck.Name.Equals(strUniqueValue))
{
// Name matches, so have it
zRetVal = objCheck;
}
}
}
#endregion
Can also link the shapes through a simulated click action, see button on
left for that code.
Nobody/Anonymous
Interface (example)
None
Public
|
Date: 2006-12-06 18:49
|
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use