Ejemplo n.º 1
0
 private void bOk_Click(object sender, EventArgs e)
 {
     if (tbPointName.Text == "")
     {
         tbPointName.BackColor = Color.Pink;
     }
     else
     {
         SyncronizePointWithControls();
         if (IsAddNewNode)
         {
             Adapter.InsertNode(Node, AnchorPoints[0]);
         }
         else
         {
             Adapter.UpdatePointAnchor(Node, AnchorPoints[0]);
         }
         Callback();
         this.Close();
     }
 }
Ejemplo n.º 2
0
 public TreeNode AddNodeToTree(PointOfInterest Point, TreeNode Parent)
 {
     return(Adapter.InsertNode(Parent, Point));
 }