protected override void Excluir()
        {
            base.Excluir();
            N_Tipos_FundamentaisCOCOMO ntpsfndmntsNegocio = new N_Tipos_FundamentaisCOCOMO();

            if (ntpsfndmntsNegocio.Excluir(Modelo_Tipo_Fundamental.Codigo))
            {
                LimparFormulario();
            }

            MessageBox.Show(ntpsfndmntsNegocio.Mensagem);
        }
        protected override void Alterar()
        {
            base.Alterar();
            N_Tipos_FundamentaisCOCOMO ntpsfndmntsNegocio = new N_Tipos_FundamentaisCOCOMO();

            if (ntpsfndmntsNegocio.Alterar(Modelo_Tipo_Fundamental.Codigo, txtbxNome.Text, (double)nmrcpdwnFatorMultiplicacao.Value, (double)nmrcpdwnExponencial.Value))
            {
                LimparFormulario();
            }

            MessageBox.Show(ntpsfndmntsNegocio.Mensagem);
        }
Example #3
0
        protected override void Procurar(string Nome, bool Parcial)
        {
            List <M_Tipos_FundamentaisCOCOMO> lstLista;
            N_Tipos_FundamentaisCOCOMO        ntpsfndmntscmNegocio = new N_Tipos_FundamentaisCOCOMO();

            try
            {
                lstLista = ntpsfndmntscmNegocio.Selecionar(Nome, Parcial);

                if (lstLista != null)
                {
                    dtgrdvwProcura.DataSource = lstLista;
                }
                else
                {
                    MessageBox.Show(ntpsfndmntscmNegocio.Mensagem);
                }
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Mensagens.PROCURAR_ERRO + Ex.Message);
            }
        }