public void LoadView() { try { ENTC_CodTransportista.ContainerService = Presenter.ContainerService; CONS_CodRGM.LoadControl(Presenter.ContainerService, "Tabla de Regimen", "RGM", "< Seleccionar Regimen >", ListSortDirection.Ascending); CONS_CodVIA.LoadControl(Presenter.ContainerService, "Tabla de Vía", "VIA", "< Seleccionar Vía >", ListSortDirection.Ascending); TIPO_CodPAIOrigen.LoadControl(Presenter.ContainerService, "Tabla Países Origen", "PAI", "< Seleccionar País Origen >", ListSortDirection.Ascending); TIPO_CodPAIDestino.LoadControl(Presenter.ContainerService, "Tabla Países Destino", "PAI", "< Seleccionar País Destino >", ListSortDirection.Ascending); Boolean _inicializar = true; foreach (Entities.Paquete _pack in Presenter.ListPaquetes) { PACK_Codigo.AddComboBoxItem(_pack.PACK_Codigo, _pack.PACK_Desc, _inicializar); _inicializar = false; } PACK_Codigo.LoadComboBox("< Seleccionar Embalaje >", ListSortDirection.Ascending); //FormatDataGrid(); } catch (Exception ex) { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error cargando la vista.", ex); } }
public void LoadView() { try { ENTC_CodTransportista.ContainerService = Presenter.ContainerService; CONS_CodRGM.LoadControl(Presenter.ContainerService, "Tabla de Regimen", "RGM", "< Seleccionar Regimen >", ListSortDirection.Ascending); CONS_CodVIA.LoadControl(Presenter.ContainerService, "Tabla de Vía", "VIA", "< Seleccionar Vía >", ListSortDirection.Ascending); TIPO_CodPAIOrigen.LoadControl(Presenter.ContainerService, "Tabla Países Origen", "PAI", "< Seleccionar País Origen >", ListSortDirection.Ascending); TIPO_CodPAIDestino.LoadControl(Presenter.ContainerService, "Tabla Países Destino", "PAI", "< Seleccionar País Destino >", ListSortDirection.Ascending); } catch (Exception ex) { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error cargando la vista.", ex); } }