celldata.cs

来自「英国几乎所有的报纸都刊登数独游戏」· CS 代码 · 共 48 行

CS
48
字号
using System;
using System.Collections;

namespace SuDokuSolution
{
     /// <summary>
    /// The numeric data of the cell
    /// </summary>
    public class CellData
	{
		public bool readOnly;
        
        /// <summary>
        /// The No in this cell in Complete Grid 
        /// </summary>
        public  int originalNb;
        
        /// <summary>
        /// Candidate nbs if the cell is not filled
        /// </summary>
        public ArrayList candidateNb;
        
        /// <summary>
        /// The  no in while solving problem or for temporary use
        /// </summary>
        public int problemNb;

        public CellData()
		{
            readOnly=false;
            originalNb=problemNb=Constants.NoNumber;
            candidateNb=new ArrayList();
        }
		
		public void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (candidateNb != null) 
				{
					candidateNb=null;
				}
			}
		}
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?