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);
        }
示例#2
0
 /* Constructor */
 public TaskNotificationConfig(TaskNotification task)
 {
     _task = task;
 }