private void bttNuovo_Click(object sender, EventArgs e)
        {
            frmModAutomezzi newForm = new frmModAutomezzi();

            newForm.MdiParent = this.MdiParent;
            this.Hide();
            newForm.frmParent = this;
            newForm.Show();
        }
 private void bttModifica_Click(object sender, EventArgs e)
 {
     if (dgvResult.CurrentRow != null)
     {
         frmModAutomezzi newForm = new frmModAutomezzi();
         newForm.MdiParent = this.MdiParent;
         this.Hide();
         newForm.frmParent = this;
         newForm.IdSel     = Convert.ToInt32(dgvResult.CurrentRow.Cells["ID"].Value);
         newForm.Show();
     }
 }