Beispiel #1
0
        private void AddNotificationButton_Click(object sender, EventArgs e)
        {
            IEnumerable <INotifier> restrictNotifiers = _trigger.GetNotifiers();
            var ui = new ChooseNotifierType(_trigger, restrictNotifiers, trayPopups, soundManager);

            if (ui.ShowDialogCenteredOnForm(this) == DialogResult.OK)
            {
                _trigger.AddNotifier(ui.Result);
                AddConfigurator(ui.Result);
            }
        }