Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Iknow6aint committed Jan 5, 2023
1 parent 08e25c0 commit 8eb721c
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Entry/Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ class Entry
static void Main(string[] arrgs)
{
AppScreen.Welcome();
long cardNumber = Validator.Convert<long>("Your card number ");
Console.WriteLine($"your name is {cardNumber}");
ATMAPP atmApp = new ATMAPP();

atmApp.CheckUserCardNumberAndPassword();

Utility.PressEnterToContinue();
}
Expand Down
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public void CheckUserCardNumberAndPassword()
UserAccount tempUserAccount = new UserAccount();

tempUserAccount.CardNumber = Validator.Convert<long>("Your Card number");
tempUserAccount.CardPin = Validator.E
tempUserAccount.CardPin = Convert.ToInt32(Utility.GetSecretInput("Enter Your Pin"));
}

public void InitializeData()
Expand Down
3 changes: 1 addition & 2 deletions Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ public static string GetSecretInput(string prompt)
if (inputkey.Key == ConsoleKey.Backspace && input.Length > 0)
{
input.Remove(input.Length - 1, 1);

}
else if (inputkey.Key != ConsoleKey.Backspace)
{
input.Append(inputkey.KeyChar);
Console.Write(asterics + '*');
Console.Write(asterics + "*");
}
}
return input.ToString();
Expand Down
Binary file modified bin/Debug/net6.0/c#.dll
Binary file not shown.
Binary file modified bin/Debug/net6.0/c#.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion obj/Debug/net6.0/c#.csproj.CoreCompileInputs.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
95afdb0e2fc04cf0fbe9cc5a4d393d0bf5e3f578
5c8897db5e2d7c77866df6b869af5e04079e496c
Binary file modified obj/Debug/net6.0/c#.dll
Binary file not shown.
Binary file modified obj/Debug/net6.0/c#.pdb
Binary file not shown.
Binary file modified obj/Debug/net6.0/ref/c#.dll
Binary file not shown.
Binary file modified obj/Debug/net6.0/refint/c#.dll
Binary file not shown.

0 comments on commit 8eb721c

Please sign in to comment.