2025年9月30日

用delegate 和event实现事件(有参数,无返回值)

摘要: //1、声明委托 public delegate void ConnectDelegate(bool state); //2、声明委托事件 public event ConnectDelegate ConnectMakeEvent; public Form1() { InitializeCompon 阅读全文

posted @ 2025-09-30 17:19 lyc6921 阅读(11) 评论(0) 推荐(0)

导航