コード例 #1
0
        public NodeViewModel CreateNode(string name, Point nodeLocation)
        {
            var node = new NodeViewModel(_cmdExec, _currentDlg.AddEntry(_currentDlg.Participant(0), name), _currentDlg, Network)
            {
                X = nodeLocation.X,
                Y = nodeLocation.Y
            };

            Network.Nodes.Add(node);

            return(node);
        }