public void ReloadAlertsSync() { if (!UserSettings.GetLoadAlerts()) { return; } LoanServices ls = ServicesProvider.GetInstance().GetContractServices(); ls.ClearAlerts(); olvAlerts.SetObjects(null); lblTitle.Text = GetString("AlertsLoading"); tabFilter.Enabled = false; List <Alert_v2> alerts = ls.FindAlerts( chkLateLoans.Checked, chkPendingLoans.Checked, chkPostponedLoans.Checked, chkOverdraftSavings.Checked, chkPendingSavings.Checked, chkValidatedLoan.Checked); LoadAlerts(alerts); tabFilter.Enabled = true; }
public void ReloadAlerts(bool clear) { if (!UserSettings.GetLoadAlerts()) { return; } LoanServices ls = ServicesProvider.GetInstance().GetContractServices(); if (clear) { ls.ClearAlerts(); } olvAlerts.SetObjects(null); lblTitle.Text = GetString("AlertsLoading"); tabFilter.Enabled = false; bwAlerts.RunWorkerAsync(); }