private void dgvConsulta_MouseDoubleClick(object sender, MouseEventArgs e) { int ID = int.Parse(((DataRowView)dgvConsulta.CurrentRow.DataBoundItem)["ID"].ToString()); MdiPrincipal mdi = (MdiPrincipal)this.MdiParent; FrmOrdemServicoCadastro frmOrdemServicoCadastro = (FrmOrdemServicoCadastro)mdi.AbrirForm(typeof(FrmOrdemServicoCadastro)); frmOrdemServicoCadastro.Carregar(ID); }
private void novoToolStripMenuItem1_Click(object sender, EventArgs e) { FrmOrdemServicoCadastro frm = (FrmOrdemServicoCadastro)AbrirForm(typeof(FrmOrdemServicoCadastro)); frm.Limpar(); }