コード例 #1
0
 public MazeTableViewModel(double[][] arrayValues, int numberOfStates, TableTypes tableType)
 {
     _tableType       = tableType;
     _arrayValues     = arrayValues;
     _numberOfStates  = numberOfStates;
     DetailsViewTitle = tableType.ToString() + " Details";
 }
コード例 #2
0
        public MazeTableViewModel(int[][] arrayValues, int numberOfStates, TableTypes tableType)
        {
            _tableType      = tableType;
            _numberOfStates = numberOfStates;
            _arrayValues    = new double[arrayValues.Length][];

            for (int i = 0; i < arrayValues.Length; ++i)
            {
                _arrayValues[i] = new double[arrayValues[i].Length];

                for (int j = 0; j < arrayValues[i].Length; ++j)
                {
                    _arrayValues[i][j] = arrayValues[i][j];
                }
            }

            DetailsViewTitle = tableType.ToString() + " Details";
        }