This is just a mock object to hold something of interest.
コード例 #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
        //{
        //    get
        //    {
        //        if (this.notifyContent == null)
        //        {
        //            // Not yet created.
        //            // Create it.
        //            this.NotifyContent = new ObservableCollection<NotifyObject>();
        //            this.Topmost = true;
        //        }

        //        return this.notifyContent;
        //    }
        //    set
        //    {
        //        this.notifyContent = value;
        //        this.Topmost = true;
        //    }
        //}

        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)
            {
                System.Diagnostics.Process.Start("http://localhost/Client-side/auth/login/");
            }
        }