Hi,
Thanks for that.
I did it like this
foreach (ShapeNode node in diagramView.Diagram.Nodes)
{
if (node.Text == "Start")
{
// assigning node matching to variable
startNode = node;
}
}
Now you see what I'm doing here, to identify the node I am using its text property.
For a new or currently created node, I shall see if the text is null.
As you probably noticed, this is not ideal.
The reason is that because of the method of executing server-side events, no arguments are passed giving me the current node that normally I would be able to access with "e.node".
Ideally I would want this:
protected void diagramView_NodeClicked(object sender, NodeEventArgs e)
But as I showed in another thread of mine, I am using a button.
So I'm forced to write a function in c# on lines of:
protected void LocationClicked(object sender, EventArgs e)
I mean really I would still like to know if my method of executing server-side event is the right and most efficient way or do you have like a tutorial on how to execute server-side events in javaApplet mode?