private void disconnectLineToolStripMenuItem_Click(object sender, EventArgs e)
{
/*--Steps :
1.Lets draw a virtual line with a prevNodeId as first point and nextNodeID as second point..
2.Then lets show a + cursor to indicate a line has been selected
3. When ever the line goes near to a node lets show a hand to drop the line.
4. When clicked drop then lets connect it to different node which has been dropped.
*/
//Series s1;
//int prevNodeID;
//int nextNodeId;
flagForDisconnectClick = 1;
// Cursor.Equals(Cursors.Cross);
if (Cursor != Cursors.Cross)
{
Cursor = Cursors.Cross;
}
insertNodeToolStripMenuItem.Enabled = false;
//--Lets add the series when the button is clicked and remove it when released..
chart1.Series.Add(addDottedSeries);
}