コード例 #1
0
        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);
        }
コード例 #2
0
        private void novoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmOrdemServicoCadastro frm = (FrmOrdemServicoCadastro)AbrirForm(typeof(FrmOrdemServicoCadastro));

            frm.Limpar();
        }