コード例 #1
0
		public void Add(HistoryItem item)
		{
			HistoryItemWidget widget = new HistoryItemWidget();
			widget.Load (item);
			vboxHistoryItems.PackEnd (widget, true, true, 4);

			//vboxHistoryItems.ShowAll();
			widget.ShowAll();
		}
コード例 #2
0
		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;

		}
コード例 #3
0
		public HistoryItem AddHistoryItemForNotification(CustomNotification notification, String text)
		{
			HistoryItem item = new HistoryItem(notification.Name, text);
			History.Add (item);
			return item;
		}