public void Add(HistoryItem item) { HistoryItemWidget widget = new HistoryItemWidget(); widget.Load (item); vboxHistoryItems.PackEnd (widget, true, true, 4); //vboxHistoryItems.ShowAll(); widget.ShowAll(); }
public void Load(HistoryItem item) { this.Item = item; this.labelHeader.UseMarkup = false; this.labelHeader.LabelProp = String.Format("<big>[{0}] - <b>{1}</b></big>", item.Date.ToString(), item.NotificationName); this.labelDetails.LabelProp = item.Text; this.labelHeader.UseMarkup = true; }
public HistoryItem AddHistoryItemForNotification(CustomNotification notification, String text) { HistoryItem item = new HistoryItem(notification.Name, text); History.Add (item); return item; }