예제 #1
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            FVehiculo fm = new FVehiculo(); //abre un nuevo formulario y cierra el principal sin terminar la ejecucion

            this.Hide();
            fm.ShowDialog();
            //this.Close();//para cerrar
        }
예제 #2
0
 private void dataGridViewProspecto_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridViewProspecto.SelectedRows.Count > 0)
     {
         FVehiculo fp = new FVehiculo();
         fp.ProspectoId = int.Parse(dataGridViewProspecto.SelectedRows[0].Cells[0].Value.ToString());
         fp.Show();
     }
 }