Example #1
0
        private void UpdateBanner()
        {
            if (inInitialize)
            {
                return;
            }

            try
            {
                var oldImage = image;

                image = BannerFactory.CreateBanner(Width, DefaultBannerHeight, icon, title, text, true);

                oldImage?.Dispose();

                Invalidate();
            }
            catch
            {
            }
        }
Example #2
0
        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)
            {
            }
        }