protected void CallEvent(WorkerEventArgs e, WorkerStateHandler handler) { if (e != null) { handler?.Invoke(this, e); } }
protected virtual void OnShowed(WorkerEventArgs e) { CallEvent(e, Showed); }
protected virtual void OnAddedWorker(WorkerEventArgs e) { CallEvent(e, AddedWorker); }
protected virtual void OnCalculated(WorkerEventArgs e) { CallEvent(e, Calculated); }
protected virtual void OnAddedHourse(WorkerEventArgs e) { CallEvent(e, AddedHourse); }