예제 #1
0
        public Node GetNewNode(Point position)
        {
            Node node = new Node("State " + this.nodes.Count.ToString(), this)
            {
                Name = "State" + this.nodes.Count.ToString()
            };

            ForPoint.Equality(node.Manager.translate, ForPoint.Division(position, node.Manager.Zoom));
            nodes.Add(node);
            Panel.SetZIndex(node, nodes.Count());
            return(node);
        }
예제 #2
0
 private void ChangePosition1(Point point)
 {
     //изменяем текущее место положения
     ForPoint.Equality(transforms.translate, point);
     ForPoint.EqualityCenter(transforms.scale, point);
 }