public Tramo(FormTramos formulario, Tramos tramo)
 {
     InitializeComponent();
     this._formulario = formulario;
     this.tramo       = tramo;
     this.puertosale(tramo.puertoSalida);
     this.puertollega(tramo.puertoLlegada);
     this.textBox3.Text = tramo.costoTramo.ToString();
 }
Exemple #2
0
        private void addTramo_Click(object sender, EventArgs e)
        {
            if (idRecorrido == -1)
            {
                MessageBox.Show("Debe guardar el recorrido primero");
                return;
            }
            Tramos t = new Tramos(idRecorrido);

            t.FormClosed += new System.Windows.Forms.FormClosedEventHandler(TramosCerrada);
            t.Show();
        }