Exemplo n.º 1
0
        /// <summary>
        /// </summary>
        private void miEnd_Click(object sender, EventArgs e)
        {
            EndButton eb = new EndButton();

            eb.Left = this.Left - DrawUtility.a;
            eb.Top  = this.Top + this.Height;
            this.Parent.Controls.Add(eb);
            eb.InFlows.Add(this);
            this.ToProcesses.Add(eb);
        }
Exemplo n.º 2
0
        /// <summary>
        /// </summary>
        private void miEnd_Click(object sender, EventArgs e)
        {
            if (ToProcesses.Count > 0)
            {
                MessageBox.Show("目标进程已经存在");
            }

            EndButton eb = new EndButton();

            eb.Left = this.Left + this.Width;
            eb.Top  = this.Top - 2 * DrawUtility.a;
            this.Parent.Controls.Add(eb);
            eb.InFlows.Add(this);
            this.ToProcesses.Add(eb);
        }
Exemplo n.º 3
0
        public override EndButton AddEnd()
        {
            if (ToProcesses.Count > 0)
            {
                MessageBox.Show("目标进程已经存在");
                return(null);
            }

            EndButton eb = new EndButton(Color.Green, this.degree, this.ArrowHead);

            eb.ProcessName = "结束";
            this.Parent.Controls.Add(eb);
            eb.DrawButton();
            eb.InFlows.Add(this);
            this.ToProcesses.Add(eb);
            return(eb);
        }