public ITaskNotificationConfig Task(string title, string message) { var newTaskNotification = new TaskNotification { Type = NotificationType.Task, Title = title, Text = message }; var newTaskNotificationConfig = new TaskNotificationConfig(newTaskNotification); newTaskNotificationConfig.Created += OnNotificationCreated; _configs.Add(newTaskNotification, newTaskNotificationConfig); return(newTaskNotificationConfig); }
/* Constructor */ public TaskNotificationConfig(TaskNotification task) { _task = task; }