예제 #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);
 }