public void InitEvents(WorkEvent workEvent, WorkMessageEvent messageEvent) { this.FormEvent += workEvent; this.MessageEvent += messageEvent; AsyncWorker.FormEvent -= workEvent; AsyncWorker.FormEvent += workEvent; AsyncWorker.MessageEvent -= messageEvent; AsyncWorker.MessageEvent += messageEvent; }
public void InitEvents(WorkEvent workEvent, WorkMessageEvent messageEvent) { this.FormEvent -= workEvent; this.FormEvent = workEvent; this.MessageEvent -= messageEvent; this.MessageEvent = messageEvent; userEntity.Clear(); userRow.Clear(); userRun.Clear(); }