Exemplo n.º 1
0
        public override FlowButton AddOutArrow(double degree)
        {
            StraightArrowButton rab = new StraightArrowButton(SystemColors.InactiveCaption, degree, this);

            this.Parent.Controls.Add(rab);
            rab.DrawButton();
            OutFlows.Add(rab);
            rab.FromProcesses.Add(this);
            rab.SetLinkControls();
            return(rab);
        }
Exemplo n.º 2
0
        public override FlowButton AddOutArrow(double outdegree)
        {
            //出入箭头不能重合
            if (((this.InArrowDegree - outdegree) % 360 + 360) % 360 == 180)
            {
                MessageBox.Show("出入箭头不能重合");
                return(null);
            }

            StraightArrowButton rab = new StraightArrowButton(SystemColors.InactiveCaption, outdegree, this);

            this.Parent.Controls.Add(rab);
            rab.DrawButton();
            OutFlows.Add(rab);
            rab.FromProcesses.Add(this);
            rab.SetLinkControls();
            return(rab);
        }