private void OnDataAddedOrDeleted(object sender, DataEventArgs dataEventArgs) { HookingFacade.RemoveHook(this.CurrentEntityTokenHook); UpdateCurrentEntityTokenHook(); HookingFacade.AddHook(this.CurrentEntityTokenHook); }
private void OnStoreChanged(object sender, StoreEventArgs dataEventArgs) { if (!dataEventArgs.DataEventsFired) { HookingFacade.RemoveHook(this.CurrentEntityTokenHook); UpdateCurrentEntityTokenHook(); HookingFacade.AddHook(this.CurrentEntityTokenHook); } }