static void Main(string[] args) { Homepage home = new Homepage(); home.Show(); Console.ReadKey(); }
internal static void UserSignUp() { bool flag = true; Console.WriteLine("Sign-up"); while (flag == true) { Console.WriteLine("Enter Email Id to continue"); Username = Console.ReadLine(); if (Validation.isValidEmail(Username)) { string password = null; Console.WriteLine("Enter new Password : "******"*"); } else { if (key.Key == ConsoleKey.Backspace && password.Length > 0) { password = password.Substring(0, (password.Length - 1)); Console.Write("\b \b"); } else if (key.Key == ConsoleKey.Enter) { break; } } }while (true); Password = password; UserData.Add(Username, new UserDetails(password)); flag = false; Console.WriteLine("\nLog in to Continue..."); Homepage home = new Homepage(); home.Show(); } else { Console.WriteLine("Email is Invalid...\nTry Again\n"); } } }