コード例 #1
0
ファイル: Cell.cs プロジェクト: speecyy/xrefresh
        /// <summary>
        /// Releases all resources used by the Cell
        /// </summary>
        public void Dispose()
        {
            if (!this.disposed)
            {
                this.text         = null;
                this.data         = null;
                this.tag          = null;
                this.rendererData = null;

                if (this.row != null)
                {
                    this.row.Cells.Remove(this);
                }

                this.row         = null;
                this.index       = -1;
                this.cellStyle   = null;
                this.checkStyle  = null;
                this.imageStyle  = null;
                this.tooltipText = null;

                this.state = (byte)0;

                this.disposed = true;
            }
        }
コード例 #2
0
ファイル: Cell.cs プロジェクト: liu7923032/XPTable
        /// <summary>
        /// Initialise default values
        /// </summary>
        private void Init()
        {
            this.text         = null;
            this.data         = null;
            this.rendererData = null;
            this.tag          = null;
            this.row          = null;
            this.index        = -1;
            this.cellStyle    = null;
            this.checkStyle   = null;
            this.imageStyle   = null;
            this.tooltipText  = null;

            this.state = (byte)(STATE_EDITABLE | STATE_ENABLED);
        }
コード例 #3
0
        /// <summary>
        /// Initialise default values
        /// </summary>
        private void Init()
        {
            this.text = null;
            this.data = null;
            this.rendererData = null;
            this.tag = null;
            this.row = null;
            this.index = -1;
            this.cellStyle = null;
            this.checkStyle = null;
            this.imageStyle = null;
            this.tooltipText = null;
            this.colspan = 1;

            this.state = (byte) (STATE_EDITABLE | STATE_ENABLED);
        }
コード例 #4
0
        /// <summary>
        /// Releases all resources used by the Cell
        /// </summary>
        public void Dispose()
        {
            if (!this.disposed)
            {
                this.text = null;
                this.data = null;
                this.tag = null;
                this.rendererData = null;

                if (this.row != null)
                {
                    this.row.Cells.Remove(this);
                }

                this.row = null;
                this.index = -1;
                this.cellStyle = null;
                this.checkStyle = null;
                this.imageStyle = null;
                this.tooltipText = null;

                this.state = (byte) 0;

                this.disposed = true;
            }
        }