private void categoriaToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmConsultaCategoria f = new frmConsultaCategoria();

            f.ShowDialog();
            f.Dispose();
        }
        private void btnLocalizar_Click(object sender, EventArgs e)
        {
            frmConsultaCategoria f = new frmConsultaCategoria();

            f.ShowDialog();
            if (f.codigo != 0)
            {
                DALConexao      cnx             = new DALConexao(DadosDaConexao.StringDeConexao);
                BLLCategoria    bllCategoria    = new BLLCategoria(cnx);
                ModeloCategoria modeloCategoria = bllCategoria.CarregaModeloCategoria(f.codigo);
                txtCodigo.Text = modeloCategoria.CatCod.ToString();
                txtNome.Text   = modeloCategoria.CatNome.ToString();
                this.alteraBotoes(3);
            }
            else
            {
                this.LimpaTela();
                this.alteraBotoes(1);
            }

            f.Dispose();
        }