private void disconnectLineFromBToolStripMenuItem_Click(object sender, EventArgs e)
{
//---This one is for detaching line form B
flagForDisconnectLineFromNode_PrevNode_Or_NextNode = 2; //Now next node is ON
//---------This code is from Disconnect Line menustipe-------//
//--This one is for disconnect lines
/*--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.
*/
flagForDisconnectClick = 1; //Enabled flag for disconnect click is enabled
// Cursor.Equals(Cursors.Cross);
if (Cursor != Cursors.Cross)
{
Cursor = Cursors.Cross;
}
//--Lets add the series when the button is clicked and remove it when released..
chart1.Series.Add(addDottedSeries);
//--------End of the disconnect line option-----------//
}