Exemple #1
0
 protected void CallEvent(WorkerEventArgs e, WorkerStateHandler handler)
 {
     if (e != null)
     {
         handler?.Invoke(this, e);
     }
 }
Exemple #2
0
 protected virtual void OnShowed(WorkerEventArgs e)
 {
     CallEvent(e, Showed);
 }
Exemple #3
0
 protected virtual void OnAddedWorker(WorkerEventArgs e)
 {
     CallEvent(e, AddedWorker);
 }
Exemple #4
0
 protected virtual void OnCalculated(WorkerEventArgs e)
 {
     CallEvent(e, Calculated);
 }
Exemple #5
0
 protected virtual void OnAddedHourse(WorkerEventArgs e)
 {
     CallEvent(e, AddedHourse);
 }