Esempio n. 1
0
        private void tipoDePagamentoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmConsultaTipoPagamento f = new frmConsultaTipoPagamento();

            f.ShowDialog();
            f.Dispose();
        }
Esempio n. 2
0
        private void btLocalizar_Click(object sender, EventArgs e)
        {
            frmConsultaTipoPagamento f = new frmConsultaTipoPagamento();

            f.ShowDialog();
            if (f.codigo != 0)
            {
                DAOConexao          cx     = new DAOConexao(DAOBanco.StringDeConexao);
                BLLTipoPagamento    bll    = new BLLTipoPagamento(cx);
                ModeloTipoPagamento modelo = bll.CarregaModeloTipoPagamento(f.codigo);
                txtCodigo.Text = modelo.TpaCod.ToString();
                txtNome.Text   = modelo.TpaNome;
                alteraBotoes(3);
            }
            else
            {
                this.LimpaTela();
                this.alteraBotoes(1);
            }
            f.Dispose();
        }