-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
62 lines (52 loc) · 1.8 KB
/
Program.cs
File metadata and controls
62 lines (52 loc) · 1.8 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using BaggageSortingSystem.classes;
using System.Diagnostics;
namespace BaggageSortingSystem
{
public class Program
{
static void Main(string[] args)
{
Debug.WriteLine("TEST FROM BaggageSortingSystem HELLLO???");
bool stop = false;
Thread.Sleep(500);
TestPrintFlightPlan();
while (!stop)
{
ConsoleKey choice = Console.ReadKey(true).Key;
if(choice == ConsoleKey.Escape)
{
stop = true;
Console.WriteLine("\n#######################################\n##### STOPPING #####\n#######################################\n");
}
Console.WriteLine(CentralServer.ToString());
}
CentralServer.stop = true;
Thread.Sleep(10000);
Console.WriteLine(CentralServer.BM.ToString());
Console.ReadLine();
}
#region For Testing Purposes!
private static void TestPrintFlightPlan()
{
for (int i = 0; i < CentralServer.FM.FlightPlan.Length; i++)
{
Flight flight = CentralServer.FM.FlightPlan[i];
Console.WriteLine(flight.ToString() + "\n");
/*
for (int j = 0; j < flight.PassengerList.Length; j++)
{
Passenger passenger = flight.PassengerList[j];
Console.Write(" -" + passenger.ToString() + (j % 2 == 0 ? " " : "\n "));
}
Console.WriteLine("\n");
//*/
}
}
#endregion
}
}