private void UpdateBanner() { if (inInitialize) { return; } try { var oldImage = image; image = BannerFactory.CreateBanner(Width, DefaultBannerHeight, icon, title, text, true); oldImage?.Dispose(); Invalidate(); } catch { } }
private void UpdateBanner() { if (inInitialize) { return; } try { var oldImage = image; image = BannerFactory.CreateBanner(Width, DefaultBannerHeight, icon, title, text, true); if (oldImage != null) { oldImage.Dispose(); } Invalidate(); } catch (Exception) { } }