Esempio n. 1
0
        public void Dispose()
        {
            if (_decorator != null)
            {
                _decorator.Dispose();
                _decorator = null;
            }
            if (_hightLightDecorator != null)
            {
                _hightLightDecorator.Dispose();
                _hightLightDecorator = null;
            }
            if (_cellDecorator != null)
            {
                _cellDecorator.Dispose();
                _cellDecorator = null;
            }
            if (_cellHightLightDecorator != null)
            {
                _cellHightLightDecorator.Dispose();
                _cellHightLightDecorator = null;
            }

            Table = null;
            if (Siblings != null)
            {
                Siblings.Clear();
                Siblings = null;
            }
            if (Cells != null)
            {
                foreach (var cell in Cells.ToArray())
                {
                    cell.Dispose();
                }

                Cells.Clear();
                Cells = null;
            }

            TextAlign     = null;
            TextFunc      = null;
            HighlightFunc = null;

            Hud = null;
        }
        public void Dispose()
        {
            if (_decorator != null)
            {
                _decorator.Dispose();
                _decorator = null;
            }
            if (_hightLightDecorator != null)
            {
                _hightLightDecorator.Dispose();
                _hightLightDecorator = null;
            }

            Table         = null;
            Column        = null;
            Line          = null;
            TextAlign     = null;
            TextFunc      = null;
            HighlightFunc = null;
            Hud           = null;
        }