示例#1
0
        public NodeObject MakeNode()
        {
            NodeObject node = new NodeObject();

            DrawableObjects.Add(node);
            return(node);
        }
示例#2
0
        private void CreateNode()
        {
            NodeObject newNode = new NodeObject();

            ActivateNode(newNode);
            nodes.Add(newNode);
            DrawableObjects.Add(newNode);
        }
示例#3
0
        public FreeHandRegion(Image backgroundImage = null)
            : base(backgroundImage)
        {
            points         = new List <Point>(128);
            regionFillPath = new GraphicsPath();

            lastNode = new NodeObject();
            DrawableObjects.Add(lastNode);
        }
示例#4
0
        public FreeHandRegion(Image backgroundImage = null)
            : base(backgroundImage)
        {
            points = new List<Point>(128);
            regionFillPath = new GraphicsPath();

            lastNode = new NodeObject();
            DrawableObjects.Add(lastNode);
        }
示例#5
0
 public FreeHandRegion()
 {
     points         = new List <Point>(128);
     regionFillPath = new GraphicsPath();
     lastNode       = new NodeObject()
     {
         Shape = NodeShape.Circle
     };
     DrawableObjects.Add(lastNode);
 }
示例#6
0
        private void CreateNode()
        {
            NodeObject newNode = new NodeObject()
            {
                Shape = NodeShape.Diamond
            };

            ActivateNode(newNode);
            nodes.Add(newNode);
            DrawableObjects.Add(newNode);
        }
示例#7
0
文件: Surface.cs 项目: yoykiee/ShareX
 public NodeObject MakeNode()
 {
     NodeObject node = new NodeObject();
     DrawableObjects.Add(node);
     return node;
 }
示例#8
0
 private void ActivateNode(NodeObject node)
 {
     node.Position   = InputManager.MousePosition0Based;
     node.Visible    = true;
     node.IsDragging = true;
 }
示例#9
0
 private void CreateNode()
 {
     NodeObject newNode = new NodeObject();
     ActivateNode(newNode);
     nodes.Add(newNode);
     DrawableObjects.Add(newNode);
 }
示例#10
0
 private void ActivateNode(NodeObject node)
 {
     node.Position = InputManager.MousePosition0Based;
     node.Visible = true;
     node.IsDragging = true;
 }
示例#11
0
 private void CreateNode()
 {
     NodeObject newNode = new NodeObject() { Shape = NodeShape.Diamond };
     ActivateNode(newNode);
     nodes.Add(newNode);
     DrawableObjects.Add(newNode);
 }