protected override void RefreshMainData() { Datos.DataSource = _entity; Stock_BS.DataSource = _entity.Stocks; switch (_entity.ETipoExpediente) { case moleQule.Store.Structs.ETipoExpediente.Maquinaria: Datos_Maquinaria.RaiseListChangedEvents = false; Datos_Maquinaria.DataSource = _entity.Maquinarias; Datos_Maquinaria.RaiseListChangedEvents = false; break; } Batchs_BS.RaiseListChangedEvents = false; Batchs_BS.DataSource = _entity.Partidas; Batchs_BS.RaiseListChangedEvents = true; PgMng.Grow(string.Empty, "Partidas"); ExpensesInvoices_BS.DataSource = InputInvoiceList.GetListByExpediente(_entity.Oid, false); Bar.Grow(); UpdateExpensesList(); Datos_Gastos.DataSource = _entity.Gastos; Ayuda_CkB.Checked = _entity.Ayuda; EstimarDespachante_CkB.Checked = _entity.EstimarDespachante; EstimarNaviera_CkB.Checked = _entity.EstimarNaviera; EstimarTOrigen_CkB.Checked = _entity.EstimarTOrigen; EstimarTDestino_CkB.Checked = _entity.EstimarTDestino; Datos_Fomento.DataSource = _entity.ExpedientesFomento; base.RefreshMainData(); }