void IPresenter.Register(IToastNotificationItem item) { items.Add(new ItemData() { source = item, }); item.Changed += ItemChanged; UpdateView(); }
void ModifyItem(IToastNotificationItem key, Action <ItemData> action) { ModifyItem(x => key != null && x.source == key, action); }