public void Draw(IMatrixDrawer matrixDrawer, int startRowIndex, int startColumnIndex, bool toClear)
 {
     if (toClear)
     {
         matrixDrawer.Clear();
     }
     foreach (var matrix in _matrixes)
     {
         matrix.Draw(matrixDrawer, startRowIndex, startColumnIndex, false);
         startColumnIndex += matrix.ColumnCount;
     }
 }
Esempio n. 2
0
 public override void Draw(IMatrixDrawer matrixDrawer, int startRowIndex = 0, int startColumnIndex = 0, bool toClear = true)
 {
     if (toClear)
     {
         matrixDrawer.Clear();
     }
     for (int i = 0; i < RowCount; i++)
     {
         for (int j = 0; j < ColumnCount; j++)
         {
             matrixDrawer.DrawCell(this, i, j, startRowIndex, startColumnIndex);
         }
     }
 }
Esempio n. 3
0
        void IMatrix.Draw(IMatrixDrawer matrixDrawer, int startRowIndex, int startColumnIndex, bool toClear)
        {
            if (toClear)
            {
                matrixDrawer.Clear();
            }
            var thisMatrix = (IMatrix)this;

            for (int i = 0; i < thisMatrix.RowCount; i++)
            {
                for (int j = 0; j < thisMatrix.ColumnCount; j++)
                {
                    matrixDrawer.DrawCell(this, i, j);
                }
            }
        }