protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         components?.Dispose();
         _statusImageList?.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                if (_statusImageList != null)
                {
                    _statusImageList.Dispose();
                }

                _themeManager.ThemeChanged -= ThemeManagerOnThemeChanged;
            }

            base.Dispose(disposing);
        }