-
Notifications
You must be signed in to change notification settings - Fork 0
/
BookingTickets.cs
73 lines (66 loc) · 2.64 KB
/
BookingTickets.cs
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
63
64
65
66
67
68
69
70
71
72
73
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.IO;
namespace ConsoleApp1
{
class BookingTickets
{
// Shows the final ticket
public void FinalTicket(string Title, string Length, string AR, string DT, string Screen, string Type, string Seats, string Price, int Screen1, int Seats1)
{
Console.Clear();
Console.WriteLine();
Console.Write(Title + " \n" + Length + " \n" + AR + " \n" + DT + " \n" + Screen + " \n" + Type + " \n" + Seats + " \n" + Price);
Console.WriteLine();
Console.WriteLine("=======================================");
Console.WriteLine();
Console.WriteLine("Please choose one of the following options:");
Console.WriteLine();
Console.WriteLine("[1] CONFIRM BOOKING");
Console.WriteLine("[2] MENU");
int choice = int.Parse(Console.ReadLine());
BookingFiles Files = new BookingFiles();
if (choice == 1)
{
Thread.Sleep(2000);
Files.Booking(Title, Length, AR, DT, Screen, Type, Seats, Price, "=======================================");
Files.Seats(Screen1, Seats1, 1);
Console.Clear();
Console.WriteLine();
Console.WriteLine("Booking Confirmed!");
Console.WriteLine();
}
else if (choice == 2)
{
Console.Clear();
Console.WriteLine();
Console.Write(Title + " \n" + Length + " \n" + AR + " \n" + DT + " \n" + Screen + " \n" + Type + " \n" + Seats + " \n" + Price);
Console.WriteLine();
Console.WriteLine("=======================================");
Console.WriteLine();
Console.WriteLine("ARE YOU SURE?");
Console.WriteLine();
Console.WriteLine("[1] YES");
Console.WriteLine("[2] NO");
int choice2 = int.Parse(Console.ReadLine());
if (choice2 == 1)
{
}
else if (choice2 == 2)
{
FinalTicket(Title, Length, AR, DT, Screen, Type, Seats, Price, Screen1, Seats1);
}
else
{
FinalTicket(Title, Length, AR, DT, Screen, Type, Seats, Price, Screen1, Seats1);
}
}
else
{
FinalTicket(Title, Length, AR, DT, Screen, Type, Seats, Price, Screen1, Seats1);
}
}
}
}