private void btnBuscaMotor_Click(object sender, EventArgs e) { this._modelMotor = new mMotor(); frmBuscaMotor objForm = new frmBuscaMotor(this._modelMotor); try { DialogResult resultado = objForm.ShowDialog(); if (resultado == DialogResult.Cancel) { this._modelMotor = null; this.txtDescMotor.Text = string.Empty; } else { this.txtDescMotor.Text = this._modelMotor.DscMotor; this._idMotor = this._modelMotor.IdMotor; } } catch (Exception ex) { throw ex; } finally { objForm = null; } }