Esempio n. 1
0
        private void mnuNewPort_Click(object sender, EventArgs e)
        {
            Control p = this.Parent;

            if (p != null)
            {
                ObjectDrawing ov = this.Owner as ObjectDrawing;
                if (ov != null && ov.ObjectEntity != null && ov.ObjectEntity.ProgEntity != null)
                {
                    ov.CreateInport();
                }
            }
        }
Esempio n. 2
0
        protected override LinkLineNode CreateTargetLinkNode()
        {
            Control p = this.Parent;

            if (p != null)
            {
                ObjectDrawing ov = this.Owner as ObjectDrawing;
                if (ov != null && ov.ObjectEntity != null && ov.ObjectEntity.ProgEntity != null)
                {
                    LinkLineNode ll = ov.CreateInport();
                    if (ll != null)
                    {
                        return(ll.Start);
                    }
                }
            }
            return(null);
        }