private void Item_Click(object sender, EventArgs e) { Hyperlink hyperlink = sender as Hyperlink; if (hyperlink == null) { return; } NotifyObject notifyObject = hyperlink.Tag as NotifyObject; if (notifyObject != null) { MessageBox.Show("\"" + notifyObject.Message + "\"" + " clicked!"); } }
public void Add(NotifyObject Notify) { NotifyContent.Add(Notify); notify.Notify(); }