-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConsole_app.cs
144 lines (112 loc) · 4.36 KB
/
Console_app.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
using System;
using System.Collections.Generic;
namespace cinema_app
{
class Program
{
static void Main()
{
void WelcomeScreen()
{
Console.WriteLine("Welcome to Fictorama! \n" +
"This is Fictoram Interface 0.02\n\n");
List<string> options = new List<string> { "1", "2", "3", "4" };
string answer = "";
while (!options.Contains(answer))
{
Console.WriteLine("Please choose what you want to do: \n" +
"1. See available movies\n" +
"2. Login\n" +
"3. Register\n" +
"4. Exit program\n"
);
answer = Console.ReadLine();
if (answer == "1")
{
MovieBrowser();
}
else if (answer == "2")
{
LoginScreen();
}
else if (answer == "3")
{
RegisterScreen();
}
else if (answer == "4")
{
ExitScreen();
}
else
{ Console.WriteLine("Your input was: " + answer + "\nInput not recognised. Please try again\n"); }
}
Console.WriteLine("Shutting down ...");
}
void MovieBrowser()
{
List<string> options = new List<string> { "1", "2", "3", "4", "5" };
string answer = "";
while (!options.Contains(answer))
{
Console.WriteLine(
"\nYou picked \"1. See available movies\" \n\n" +
"NOW PLAYING: \n" +
"1. Star Wars: The Rise of Skywalker (2019) \n" +
"2. Archive (2020)\n" +
"3. Underwater (2020)\n" +
"4. The Martian (2015)\n" +
"5. Guardians of the Galaxy Vol 2\n"
);
Console.WriteLine(
"Select a movie to learn more about it..."
);
answer = Console.ReadLine();
if (answer == "1")
{
// Hier misschien een method genaamd StarWarsTheRiseOfTheSkyWalker()
// Met daarmee een call naar die film waarin je weer losse info kan zetten
Console.WriteLine("1.Star Wars: The Rise of Skywalker(2019) \n" +
"No information available yet.");
}
else if (answer == "2")
{
Console.WriteLine("2. Archive (2020)\n" +
"No information available yet.");
}
else if (answer == "3")
{
Console.WriteLine("3. Underwater (2020)\n" +
"No information available yet.");
}
else if (answer == "4")
{
Console.WriteLine("4. The Martian (2015)\n" +
"No information available yet.");
}
else if (answer == "5")
{
Console.WriteLine("5. Guardians of the Galaxy Vol 2\n" +
"No information available yet.");
}
else
{ Console.WriteLine("Your input was: " + answer + "\nInput not recognised. Please try again\n"); }
}
}
void LoginScreen()
{
Console.WriteLine("You picked \"2. Login\" \n" +
"WORK IN PROGRESS - Please come back later");
}
void RegisterScreen()
{
Console.WriteLine("You picked \"3. Register\" \n" +
"WORK IN PROGRESS - Please come back later");
}
void ExitScreen()
{
Console.WriteLine("Shutting down...");
}
WelcomeScreen();
}
}
}