コード例 #1
0
 /// <summary>
 /// 添加界面打印订阅
 /// </summary>
 /// <param name="subject"></param>
 public void AddReport(ISubject subject)
 {
     subject.ReportEvent += new ISubject.ReportEventHandler(ReportEvent);
 }
コード例 #2
0
 /// <summary>
 /// 添加数据刷新订阅
 /// </summary>
 /// <param name="subject">订阅者</param>
 public void AddProcess(ISubject subject)
 {
     subject.SubjectEvent += new ISubject.SubjectEventHandler(SubjectEvent);
 }