Beispiel #1
0
        public void GivenThatMySettingsAreSetToFlashTaskbarOnAnyMessage()
        {
            var settings = new MetroFireSettings()
            {
                General      = new GeneralSettings(),
                Network      = new NetworkSettings(),
                Notification = new NotificationSettings()
                {
                    Notifications = new[]
                    {
                        new NotificationEntry
                        {
                            Actions = new NotificationAction[]
                            {
                                new FlashTaskBarNotificationAction(),
                            },
                            Triggers = new[]
                            {
                                new NotificationTrigger {
                                    TriggerType = TriggerType.UserMessage
                                },
                            }
                        }
                    }
                }
            };

            _context.ChangeSettings(settings);
        }
Beispiel #2
0
 public void ChangeSettings(MetroFireSettings settings)
 {
     _loader.Settings = settings;
     SendMessage(new SettingsChangedMessage());
 }