コード例 #1
0
        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!");
            }
        }
コード例 #2
0
 public void Add(NotifyObject Notify)
 {
     NotifyContent.Add(Notify);
     notify.Notify();
 }