public ReminderConfigurationForm(PluginRepository plugins, IReminder reminder, IReminderController guiController) { this.pluginsRepository = plugins; this.reminder = reminder; this.guiController = guiController; this.InitializeComponent(); var reminderControl = this.guiController.GetSettingsPanel(); reminderControl.Dock = DockStyle.Fill; this.pnlRemider.Controls.Add(reminderControl); var notificationsControl = plugins.CherryCommands["Get Notifications Configuration Control"].Do(null) as Control; notificationsControl.Dock = DockStyle.Fill; this.notificationsTabPage.Controls.Add(notificationsControl); var conditionssControl = plugins.CherryCommands["Get Conditions Configuration Control"].Do(null) as Control; conditionssControl.Dock = DockStyle.Fill; this.conditionsTabPage.Controls.Add(conditionssControl); this.nameTextBox.Text = this.reminder.Name; this.descriptionTextBox.Text = this.reminder.Description; this.guiController.LoadSettingsFromReminder(reminder); plugins.CherryCommands["Populate Notifications Configuration"].Do( new CompositeNotificationCommandArgs(this.reminder.CompositeNotification)); plugins.CherryCommands["Populate Conditions Configuration"].Do( new CompositeConditionCommandArgs(this.reminder.CompositeCondition)); }
public IReminderController GetGuiController() { return this.guiController ?? (this.guiController = this.CreateGuiController()); }
public IReminderController GetGuiController() { return(this.guiController ?? (this.guiController = this.CreateGuiController())); }