private static void OnBackgroundCacheUpdateStatusChanged(BackgroundAutoCompleteStatus status, Exception errorDetails) { if (BackgroundCacheUpdateStatusChanged != null) { BackgroundCacheUpdateStatusChanged(status, errorDetails); } }
private void AutoComplete_BackgroundCacheUpdateStatusChanged(BackgroundAutoCompleteStatus status, Exception errorDetails) { if (status == BackgroundAutoCompleteStatus.Finished) { if (this.IsHandleCreated) { this.Invoke(new AnonymousDelegate(UpdateFunctionList)); } } }
private void AutoComplete_BackgroundCacheUpdateStatusChanged(BackgroundAutoCompleteStatus status, Exception errorDetails) { string statusText = string.Empty; switch (status) { case BackgroundAutoCompleteStatus.Processing: statusText = "Updating autocomplete cache..."; break; case BackgroundAutoCompleteStatus.Finished: statusText = string.Empty; break; case BackgroundAutoCompleteStatus.Error: statusText = "AutoComplete error: " + errorDetails.Message; break; } ((IGUIController)this).SetStatusBarText(statusText); }