Beispiel #1
0
        private void tipoDePagamentoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmConsultaTipoDePagamento f = new frmConsultaTipoDePagamento();

            f.ShowDialog();
            f.Dispose();
        }
Beispiel #2
0
        private void btnLocalizar_Click(object sender, EventArgs e)
        {
            frmConsultaTipoDePagamento f = new frmConsultaTipoDePagamento();

            f.ShowDialog();
            if (f.codigo != 0)
            {
                DALConexao          cx     = new DALConexao(DadosDaConexao.stringDeConexao);
                DAOTipoDePagamento  daoPag = new DAOTipoDePagamento(cx);
                ModeloTipoPagamento modelo = daoPag.carregaTipoPagamento(f.codigo);
                txtCodigo.Text = modelo.tpa_cod.ToString();
                txtNome.Text   = modelo.tpa_nome;
                alteraBotoes(3);
            }
            else
            {
                this.limparTela();
                this.alteraBotoes(1);
            }
            f.Dispose();
        }