private void cadastroDeFuncionárioToolStripMenuItem_Click(object sender, EventArgs e) { frmEditFunc cadFunc = new frmEditFunc(); cadFunc.MdiParent = this; cadFunc.Show(); }
private void dtgfnc_CellClick(object sender, DataGridViewCellEventArgs e) { int cod = Convert.ToInt32(dtgfnc.CurrentRow.Cells[0].Value); if (cod != 0) { frmEditFunc func = new frmEditFunc(); func.MdiParent = Application.OpenForms.OfType <MDIddsw>().FirstOrDefault(); func.Show(); func.importa(cod); } }