示例#1
0
 public void NewFile()
 {
     NodeCollection.Clear();
     ConnectorCollection.Clear();
     Children.Clear();
     if (radialMenu != null)
     {
         radialMenu.Dispose();
     }
     radialMenu    = null;
     selectionNode = null;
 }
示例#2
0
        private void ShowSelectionNode()
        {
            if (selectionNode == null)
            {
                selectionNode = new SelectionNode(this);
            }

            selectionNode.Left = Mouse.GetPosition(this).X - 45;
            selectionNode.Top  = Mouse.GetPosition(this).Y - 20;

            selectionNode.Show();
        }