public FrmDiagramaDeBloques(PointPairList polos, PointPairList ceros, RootLocus rl)
     : this()
 {
     this.rl = rl;
     this.polos = polos;
     this.ceros = ceros;
 }
 //double finK;
 //int cantPtos;
 public FrmDatos(PointPairList polos, PointPairList ceros, RootLocus rl)
 {
     InitializeComponent();
     this.rl = rl;
     this.polos = polos;
     this.ceros = ceros;
 }
        //double finK;
        //int cantPtos;
        public FrmDatosPrimerOrdenProporcional(PointPairList polos, PointPairList ceros, RootLocus rl,string polo1)
        {
            InitializeComponent();
            this.rl = rl;
            this.polos = polos;
            this.ceros = ceros;

            this.ftbxPol1.Enabled = false;
            this.ftbxPol1.Text = polo1;
            this.chkVistaPrevia.Checked = true;
        }
        //double finK;
        //int cantPtos;tring
        public FrmDatosSegundoOrdenProporcionalDerivativo(PointPairList polos, PointPairList ceros, RootLocus rl,string polo1,string polo2,string cero1)
        {
            InitializeComponent();
            this.rl = rl;
            this.polos = polos;
            this.ceros = ceros;

            this.ftbxPol1.Enabled = false;
            this.ftbxPol2.Enabled = false;
            this.ftbxCer1.Enabled = false;

            this.ftbxPol1.Text = polo1;
            this.ftbxPol2.Text = polo2;
            this.ftbxCer1.Text = cero1;

            this.chkVistaPrevia.Checked = true;
        }
        //double finK;
        //int cantPtos;
        public FrmDatosSegundoOrdenProporcionalIntegralDerivativo(PointPairList polos, PointPairList ceros, RootLocus rl, string polo1, string polo2, string polo3,string cero1, string cero2, string realOImaginario)
        {
            InitializeComponent();
            this.rl = rl;
            this.polos = polos;
            this.ceros = ceros;

            this.ftbxPol1.Enabled = false;
            this.ftbxPol2.Enabled = false;
            this.ftbxPol3.Enabled = false;

            this.ftbxPol1.Text = polo1;
            this.ftbxPol2.Text = polo2;
            this.ftbxPol3.Text = polo3;

            if (realOImaginario == "real")
            {
                this.ftbxCer1.Enabled = false;
                this.ftbxCer2.Enabled = false;

                this.ftbxCer1.Text = Math.Round(double.Parse(cero1), 2).ToString(); ;
                this.ftbxCer2.Text = Math.Round(double.Parse(cero2), 2).ToString(); ;
            }
            else
            {
                rbRe.Checked = false;
                rbIm.Checked = true;

                this.ftbxCeroRe.Text = Math.Round(double.Parse(cero1), 2).ToString(); ;
                this.ftbxCeroIm.Text = Math.Round(double.Parse(cero2), 2).ToString();
            }

            this.chkVistaPrevia.Checked = true;
            this.ftbxCeroRe.Visible = false;
            this.ftbxCeroIm.Visible = false;
            this.lMasMenos.Visible = false;
            this.lJota.Visible = false;
        }
        private void limpiar()
        {
            rl = new RootLocus();
            polos.Clear();
            ceros.Clear();
            zedC.GraphPane.CurveList.Clear();
            zedC.RestoreScale(zedC.GraphPane);

            //Se indica que ninguna curva esta en memoria
            rectas1 = false;
            rectas2 = false;
            rectas3 = false;
            rectas4 = false;
            rectas5 = false;

            //Se limpia la grilla
            foreach (DataRow fila in dat.Rows)
                fila[1] = "";
        }