C# 事件與委託

委託 和 事件在 .Net Framework中的應用非常廣泛.這裏主要介紹頁面間交互的應用 舉例:單擊Form1的Button1  Form2的textbox值與Form1 相同 1,定義一個事件委託類  public class EventBridge {     public delegate void MyDelegate(string str);     public static ev
相關文章
相關標籤/搜索