Changed layout of messages to make them consistent

This commit is contained in:
2015-11-21 17:55:03 -05:00
parent d10ffd7077
commit 3f5100dcc0
9 changed files with 100 additions and 103 deletions

View File

@@ -354,6 +354,16 @@ namespace EduNetworkBuilder
if (myWin == null) return null;
return myWin.PuzzleInfoFromName(PuzzleName);
}
public static string LeftPad(string what, int amount=-1)
{
int UseAmount = 10;
if (amount != -1) UseAmount = amount;
string format = "{0," + (0 - UseAmount).ToString() + "}";
string mystring = string.Format(format, what);
return mystring;
}
public static void ChangeLanguage()
{
//Find the window. If it exists, use /set the language setting there. If not, use / set the default.