private static IEnumerable<string> WriteByLine(this string[] groups, string order, int startIndex = 0)
{
string text = "";
int groupIndex = 0;
foreach (string item in groups)
{
// TODO: Change this next line to the actual order of items instead of just the first or second three items
text += item.Reorder(order).Substring(startIndex, Math.Min(3, item.Length));
if (groupIndex == 4)
{
text += "\n";
groupIndex = 0;
}
else
{
text += " ";
}
groupIndex++;
}
return text.Split("\n");
}
private static IEnumerable<string> WriteByLine(this string[] groups, string order, int startIndex = 0)
{
string text = "";
int groupIndex = 0;
foreach (string item in groups)
{
// TODO: Change this next line to the actual order of items instead of just the first or second three items
text += item.Reorder(order).Substring(startIndex, Math.Min(3, item.Length));
if (groupIndex == 4)
{
text += "\n";
groupIndex = 0;
}
else
{
text += " ";
}
groupIndex++;
}
return text.Split("\n");
}