protected override void OnInitialized() { if (RefreshEvent.HasDelegate) { RefreshEvent.InvokeAsync(new EventCallbackFactory().Create(new object(), Refresh)).Wait(); } UIInit(); }