public frmBuscaItemPeca(mItemPeca modelItemP, bool Alteracao)
 {
     InitializeComponent();
     this._model = modelItemP;
     this._alteracao = Alteracao;
 }
 /// <summary>
 /// Popula o model item peça com os dados que estão no painel da tela
 /// </summary>
 /// <returns>model populado</returns>
 private mItemPeca PopulaModelItemPeca()
 {
     mItemPeca model = new mItemPeca();
     try
     {
         if (this._modelItemPeca == null)
         {
             this._modelItemPeca = new List<mItemPeca>();
         }
         model.Dat_alt = DateTime.Now;
         model.Flg_ativo = true;
         model.Id_item = null;
         model.Id_peca = this._idPeca;
         model.Qtd_peca = Convert.ToInt32(this.txtQtdPeca.Text);
         this._modelItemPeca.Add(model);
         return model;
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         model = null;
     }
 }
 public frmBuscaItemPeca(mItemPeca modelItemP)
 {
     InitializeComponent();
     this._model = modelItemP;
     this._alteracao = false;
 }