protected virtual void UpdateBindings() { Stock_BS.ResetBindings(false); Stock_DGW.Refresh(); Batchs_BS.ResetBindings(false); Benefits_DGW.Refresh(); ExpensesInvoices_BS.ResetBindings(true); ExpensesInvoices_DGW.Refresh(); }
protected override void UpdateExpensesList() { ExpensesInvoices_BS.RaiseListChangedEvents = false; Expenses_BS.RaiseListChangedEvents = false; ExpensesInvoices_BS.DataSource = _entity.Facturas; Expenses_BS.DataSource = Expenses.GetListAgrupada(_entity.Gastos.GetSubListOtrosGastos()); ExpensesInvoices_BS.RaiseListChangedEvents = true; Expenses_BS.RaiseListChangedEvents = true; ExpensesInvoices_BS.ResetBindings(true); ExpensesInvoices_DGW.Refresh(); Expenses_BS.ResetBindings(true); Expenses_DGW.Refresh(); }