whitespace forced changes (#6002)

This commit is contained in:
Clint Rutkas
2020-08-17 10:00:56 -07:00
committed by GitHub
parent 649e7e103d
commit d055ba1c3b
129 changed files with 14175 additions and 14175 deletions

View File

@@ -854,41 +854,41 @@ namespace FancyZonesEditor
CollapseIndices();
FixAccuracyError(_rowInfo, _model.RowPercents);
FixAccuracyError(_colInfo, _model.ColumnPercents);
}
public void ReplaceIndicesToMaintainOrder(int zoneCount)
{
int[,] cells = _model.CellChildMap;
}
public void ReplaceIndicesToMaintainOrder(int zoneCount)
{
int[,] cells = _model.CellChildMap;
Dictionary<int, int> indexReplacement = new Dictionary<int, int>();
List<int> zoneIndices = new List<int>(zoneCount);
HashSet<int> zoneIndexSet = new HashSet<int>(zoneCount);
List<int> zoneIndices = new List<int>(zoneCount);
HashSet<int> zoneIndexSet = new HashSet<int>(zoneCount);
for (int i = 0; i < zoneCount; i++)
{
zoneIndices.Add(i);
}
}
for (int row = 0; row < _model.Rows; row++)
{
for (int col = 0; col < _model.Columns; col++)
{
zoneIndexSet.Add(cells[row, col]);
}
}
int j = 0;
foreach (int index in zoneIndexSet)
{
indexReplacement[index] = zoneIndices[j];
j++;
}
ReplaceIndicesToMaintainOrder(indexReplacement);
}
int j = 0;
foreach (int index in zoneIndexSet)
{
indexReplacement[index] = zoneIndices[j];
j++;
}
ReplaceIndicesToMaintainOrder(indexReplacement);
}
private void ReplaceIndicesToMaintainOrder(Dictionary<int, int> indexReplacement)
{
int[,] cells = _model.CellChildMap;
private void ReplaceIndicesToMaintainOrder(Dictionary<int, int> indexReplacement)
{
int[,] cells = _model.CellChildMap;
for (int row = 0; row < _model.Rows; row++)
{
@@ -896,7 +896,7 @@ namespace FancyZonesEditor
{
cells[row, col] = indexReplacement[cells[row, col]];
}
}
}
}
private void CollapseIndices()