Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormTrans formTrans = new FormTrans();

            formTrans.save = savedTransport;
            formTrans.ShowDialog();
        }
Exemplo n.º 2
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Transport prod      = (Transport)transports.ToArray().GetValue(e.RowIndex);
            FormTrans formTrans = new FormTrans(prod);

            formTrans.save += savedTransport;
            formTrans.ShowDialog();
        }