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!"); } }
//{ // 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/"); } }