Advertisement
jackinman123

Untitled

Nov 23rd, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. decimal trainticket;
  2. string[] username = { "x", "y", "z", };
  3. string[] password = { "x", "y", "z", };
  4.  
  5.  
  6. while (HERE is WHAT i NEED TO MAKE THE USER AND PASS WORK)
  7. {
  8. Console.SetWindowSize(50, 28);
  9. Console.BackgroundColor = ConsoleColor.Gray;
  10. Console.Clear();
  11. Console.ForegroundColor = ConsoleColor.Red;
  12. Console.SetCursorPosition(13, 1);
  13. Console.WriteLine("Enter Your Login Details");
  14. Console.ForegroundColor = ConsoleColor.DarkGreen;
  15. Console.SetCursorPosition(15, 6);
  16. Console.Write("Username: ");
  17. Console.ForegroundColor = ConsoleColor.Black;
  18. Console.ReadLine();
  19. Console.ForegroundColor = ConsoleColor.DarkGreen;
  20. Console.SetCursorPosition(15, 9);
  21. Console.Write("Password: ");
  22. Console.ForegroundColor = ConsoleColor.Black;
  23. Console.ReadLine();
  24. Console.WriteLine();
  25.  
  26. attempts = attempts + 1;
  27. if (attempts == 3)
  28. {
  29. break;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement