Exemplo n.º 1
0
 private void pictureBoxMain_MouseUp(object sender, MouseEventArgs e)
 {
     if (radioButtonLink.Checked == true)
     {
         Node EndLink = MainGraph.Nodes.Find(x => (x.GetX() - TextPos <e.X && x.GetX() + TextPos> e.X) && (x.GetY() - TextPos <e.Y && x.GetY() + TextPos> e.Y));
         if (EndLink != null)
         {
             EndLink.AddNewLink(TPositionNode);
         }
         else
         {
             DrawNodes();
         }
     }
     TPositionNode = null;
 }