Exemplo n.º 1
0
    public void SetData(int[] data)
    {
        int count = 0;

        Flush();

        if (data.Length == Constants.ROWS * Constants.COLS)
        {
            for (int r = 0; r < Constants.ROWS; r++)
            {
                for (int c = 0; c < Constants.COLS; c++)
                {
                    this.data[r, c] = data[count];
                    count++;
                }
            }

            Push();
        }
        else
        {
            QDebug.Assert(false);
        }
    }
Exemplo n.º 2
0
 public void SetValue(int r, int c, int value)
 {
     QDebug.Assert(!boxes[r, c].IsThisBoxFilled());
     boxes[r, c].SetValue(value);
 }