Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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();
        }