-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDrawingTool.cs
More file actions
29 lines (29 loc) · 940 Bytes
/
Copy pathDrawingTool.cs
File metadata and controls
29 lines (29 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using Main;
class DrawingTool
{
public static void StartProgram()
{
do
{
try
{
Command oCommandReceived = CommandReader.ReadCommand();
if (oCommandReceived.CommandIdentifier == 'Q')
{
break;
}
DrawCommandProcessor.Execute(oCommandReceived);
}
catch (Exception ex)
{
Console.SetCursorPosition(0, 0);
Console.Write(new string(' ', Console.WindowWidth));
Console.SetCursorPosition(0, 0);
Console.WriteLine("Error: " + ex.Message + ". Press enter to continue");
Console.ReadKey(true);
}
} while (true);
}
}