mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
whitespace forced changes (#6002)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user