Skip to content

Commit 6e52075

Browse files
committed
added try catch
2 parents c9a9a72 + 88269e6 commit 6e52075

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

CSharpFinder/Program.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ static void Main(string[] args)
3333
// Anzeigeeinstellungen
3434
Console.Title = "CSharp Finder";
3535
Console.ForegroundColor = ConsoleColor.DarkRed;
36-
Console.WindowWidth += 40;
37-
Console.WindowHeight += 10;
36+
37+
try
38+
{
39+
Console.WindowWidth = Console.WindowWidth + 40;
40+
Console.WindowHeight = Console.WindowHeight + 10;
41+
}
42+
catch { }
3843

3944
// Programmtitel
4045
Console.WriteLine();

0 commit comments

Comments
 (0)