private void newToolStripButton_Click(object sender, EventArgs e)
        {
            FlowComponents.Clear();
            this.pnlMain.Controls.Clear();
            this.FlowConnectors.Clear();

            FlowStart fs = new FlowStart();

            StartNode = fs;
            this.SuspendLayout();
            this.pnlMain.Controls.Add(fs);
            fs.SetComponentContainer(this);
            fs.Left = (this.pnlMain.Width - fs.Width) / 2;
            fs.Top  = 50;
            FlowComponents.Add(fs);
            this.AddFlowComponent(fs);
            this.ResumeLayout();
        }
        public FlowDiagram()
        {
            InitializeComponent();
            sg.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot;
            bg.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
            sg.Width     = 1;
            bg.Width     = 1;
            //incarcam o diagrama de start
            FlowStart fs = new FlowStart();

            StartNode = fs;
            this.SuspendLayout();
            this.pnlMain.Controls.Add(fs);
            fs.SetComponentContainer(this);
            fs.Left = (this.pnlMain.Width - fs.Width) / 2;
            fs.Top  = 50;
            FlowComponents.Add(fs);
            this.AddFlowComponent(fs);
            this.ResumeLayout();
        }