public void CreateNotification(NodeAddedEvent e, SpecialOfferNotificationNode notification) { NotificationMessageComponent component = new NotificationMessageComponent { Message = string.Format(notification.paymentNotificationText.MessageTemplate, notification.specialOfferNotification.OfferName) }; notification.Entity.AddComponent(component); }
public void CreateMessage(NodeAddedEvent e, NotificationWithoutGroupNode notification) { NotificationMessageComponent component = new NotificationMessageComponent { Message = notification.newItemNotificationText.HeaderText }; notification.Entity.AddComponent(component); }
public void CreateNotification(NodeAddedEvent e, SaleEndNotificationNode notification) { NotificationMessageComponent component = new NotificationMessageComponent { Message = string.Format(notification.saleEndNotificationText.Message, new object[0]) }; notification.Entity.AddComponent(component); }