>>using System; >>using System.Drawing; >>using System.Collections; >>using System.ComponentModel; >>using System.Windows.Forms; >>using System.Data; >> >>namespace TestFormApplication >>{ >> /// <summary> >> /// Summary description for Form1. >> /// </summary> >> public class Form1 : System.Windows.Forms.Form >> { >> private System.Windows.Forms.TextBox textBox1; >> private System.Windows.Forms.Label label1; >> private System.Windows.Forms.Button _btnGo; >> /// <summary> >> /// Required designer variable. >> /// </summary> >> private System.ComponentModel.Container components = null; >> >> private Hashtable _hash = new Hashtable(); >> public delegate void GaryDelegate(string message); >> public event GaryDelegate Hey >> { >> add >> { >> _hash["Hey"] = (GaryDelegate) _hash["Hey"] + value; >> >> } >> remove >> { >> _hash["Hey"] = (GaryDelegate) _hash["Hey"] - value; >> } >> } >> >>... >>... >>... >> >>>>