Beispiel #1
0
        private void orçamentoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmConsultaOrcamento f = new frmConsultaOrcamento();

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

            f.ShowDialog();
            if (f.codigo != 0)
            {
                DALConexao      cx     = new DALConexao(DadosDaConexao.StringDeConexao);
                BLLOrcamento    bll    = new BLLOrcamento(cx);
                ModeloOrcamento modelo = bll.CarregaModeloOrcamento(f.codigo);
                txtCodigo.Text = modelo.IDOrcamento.ToString();
                txtNome.Text   = modelo.NomeOrcamento;

                alteraBotoes(3);
            }
            else
            {
                this.LimpaTela();
                this.alteraBotoes(1);
            }
            f.Dispose();
        }