ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupImage.Dispose C# (CSharp) Method

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_memento1 != null)
                {
                    _memento1.Dispose();
                    _memento1 = null;
                }

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

            base.Dispose(disposing);
        }