private void AbrirArchivo() { try { if (cmbCodificacion.ConstantesSelectedItem != null) { if (!String.IsNullOrEmpty(txaOpenFile.FullPath)) { Presenter.CRespuestas = new Infrastructure.Aspect.Constants.CCabeceraRDetracciones(); Presenter.CRespuestas.PathArchivo = txaOpenFile.FullPath; if (Presenter.AbrirArchivo(cmbCodificacion.SelectedValue.ToString())) { txtArchivo.Text = Presenter.CRespuestas.Archivo.ToString(); btnLevantar.Enabled = true; btnDeshacer.Enabled = true; SetItem(); ShowItems(); } else { Deshacer(); } } else { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeInformacion(Presenter.Title, "Debe seleccionar un archivo."); } } else { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeInformacion(Presenter.Title, "Debe seleccionar un tipo de codificacón para el archivo."); } } catch (Exception ex) { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "El archivo que ha seleccionado es incorrecto. ", ex); } }