Beispiel #1
0
        private List <ViewModelNode> UnFullMoveAllSelectedNode(MyPoint delta, List <ViewModelNode> nodes = null)
        {
            MyPoint myPoint = delta.Copy();

            myPoint.Mirror();
            nodes.ForEach(node => node.CommandMove.Execute(myPoint));
            return(nodes);
        }
Beispiel #2
0
        private List <ViewModelNode> FullMoveAllSelectedNode(MyPoint delta, List <ViewModelNode> nodes = null)
        {
            MyPoint myPoint = delta.Copy();

            if (nodes == null)
            {
                nodes = Nodes.Where(x => x.Selected).ToList();
                myPoint.Clear();
            }
            nodes.ForEach(node => node.CommandMove.Execute(myPoint));
            return(nodes);
        }
Beispiel #3
0
        private ViewModelNode AddNode(MyPoint parameter, ViewModelNode result)
        {
            ViewModelNode newNode = result;

            if (result == null)
            {
                MyPoint myPoint = parameter.Copy();
                myPoint /= Scale.Value;
                newNode  = new ViewModelNode(this)
                {
                    Name   = "State " + Nodes.Count.ToString(),
                    Point1 = new MyPoint(myPoint)
                };
            }
            Nodes.Add(newNode);
            return(newNode);
        }