/// <summary>
        /// Abre a tela de resumo antes de gravar os dados no banco
        /// </summary>
        private void AbreTelaResumo()
        {
            string nomeFamMotor = this._modelNumeroMotor.IdNumMotorReal + this._modelTipoMotor.IdTipoMotorReal;
            string nomeMotor=this.txtMotorCompra.Text;

            Resumo.frmResumoKitFamilia ResumoKit = new TCC.UI.Resumo.frmResumoKitFamilia(this._listaKitFamilia,nomeFamMotor,nomeMotor);
            try
            {
                DialogResult resultado;
                resultado = ResumoKit.ShowDialog();
                if (resultado == DialogResult.Cancel)
                {
                    throw new BUSINESS.Exceptions.FamiliaMotor.TelaResumoCanceladaException();
                }
            }
            catch (Exception e)
            {
                throw e;
            }
            finally
            {
                ResumoKit = null;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Abre a tela de resumo antes de gravar os dados no banco
        /// </summary>
        private void AbreTelaResumo()
        {
            string nomeFamMotor = this._modelNumeroMotor.IdNumMotorReal + this._modelTipoMotor.IdTipoMotorReal;
            string nomeMotor    = this.txtMotorCompra.Text;

            Resumo.frmResumoKitFamilia ResumoKit = new TCC.UI.Resumo.frmResumoKitFamilia(this._listaKitFamilia, nomeFamMotor, nomeMotor);
            try
            {
                DialogResult resultado;
                resultado = ResumoKit.ShowDialog();
                if (resultado == DialogResult.Cancel)
                {
                    throw new TCC.Regra.Exceptions.FamiliaMotor.TelaResumoCanceladaException();
                }
            }
            catch (Exception e)
            {
                throw e;
            }
            finally
            {
                ResumoKit = null;
            }
        }