示例#1
0
        public void Launch(INotifications notifications, AlertModel alert, bool triggerAlerts = true, bool showPopup = true)
        {
            UpdateAlerts();

            AlertManager.AddAlerts(alert);

            _alerts.Add(alert);

            SettingsModel settings = SettingsFactory.GetSettings(Configuration.Current.SettingsFilePath);

            if (triggerAlerts)
            {
                TriggerAlerts(notifications, settings, alert);
            }

            if (showPopup)
            {
                ShowPopup(alert);
            }
        }