-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppScreen.cs
More file actions
49 lines (41 loc) · 1.38 KB
/
Copy pathAppScreen.cs
File metadata and controls
49 lines (41 loc) · 1.38 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public static class AppScreen
{
internal static void Welcome()
{
// clear terminal
Console.Clear();
Console.Title = "MY ATM App";
// set Terminal Color
Console.ForegroundColor = ConsoleColor.White;
//set welcome message
Console.WriteLine("\n\n.......... Welcome To My ATM ........\n\n");
// Prompt
Console.WriteLine("Please insert your Atm Card");
Console.WriteLine("Note: Actual Machine will validate a Physical ATM card");
Utility.PressEnterToContinue();
}
internal static UserAccount UserLoginForm()
{
UserAccount tempUserAccount = new UserAccount();
tempUserAccount.CardNumber = Validator.Convert<long>("Your Card number");
tempUserAccount.CardPin = Convert.ToInt32(Utility.GetSecretInput("Enter Your Card Pin"));
return tempUserAccount;
}
internal static void LoginProcess()
{
Console.WriteLine("\nChecking Card number and PIN ...");
Utility.PrintDotAnimation();
}
internal static void PrintLockedScreen()
{
Console.Clear();
Utility.PrintError(" Your account is Loacked Please visit Branch ti unlock", true);
Utility.PressEnterToContinue();
Environment.Exit(1);
}
}