void abrirFormularioCadastroOrcamento(string codigo = null)
        {
            frmCadSubCategoria frmCadSubCategoria = new frmCadSubCategoria(codigo);

            if ((Application.OpenForms["frmCadSubCategoria"] as frmCadSubCategoria) != null)
            {
                frmCadSubCategoria.BringToFront();
                frmCadSubCategoria.Focus();
            }
            else
            {
                frmCadSubCategoria.MdiParent = this.MdiParent;
                frmCadSubCategoria.Show();
            }
        }
Beispiel #2
0
        private void subCategoriasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadSubCategoria frm = new frmCadSubCategoria();

            frm.ShowDialog();
        }