internal void AddNewTimer() { var availableTimers = timerDefinitions.GetDefinitionsOfUnusedTimers(activeTimerDefinitions.Select(timer => timer.DefinitionId)); TimersChoiceForm ui = new TimersChoiceForm(availableTimers, timersFeature.GetModuleUi()); if (ui.ShowDialogCenteredOnForm(timersFeature.GetModuleUi()) == System.Windows.Forms.DialogResult.OK) { foreach (var definition in ui.Result) { try { AddNewTimer(definition); } catch (Exception exception) { logger.Error(exception, "Error at InitTimers for timer " + definition); } } } }