コード例 #1
0
        private void bttNuovo_Click(object sender, EventArgs e)
        {
            frmModArticoli newForm = new frmModArticoli();

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