Пример #1
0
        private void cadastroDeFuncionárioToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmEditFunc cadFunc = new frmEditFunc();

            cadFunc.MdiParent = this;
            cadFunc.Show();
        }
Пример #2
0
        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);
            }
        }