static void Register() { Console.WriteLine("Username"); string user = Console.ReadLine(); Console.WriteLine("Email"); string email = Console.ReadLine(); Regex mail = new Regex(@"^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$"); while (!mail.IsMatch(email)) { Console.WriteLine("Yanlis Email"); email = Console.ReadLine(); } Console.WriteLine("Password"); string pass = Console.ReadLine(); while (!CheckPass(pass)) { Console.WriteLine("Yanlis Password"); pass = Console.ReadLine(); } Console.WriteLine("Confirm password"); string passChecker = Console.ReadLine(); while (pass != passChecker) { Console.WriteLine("Yanlis"); passChecker = Console.ReadLine(); } Console.WriteLine("1.Ishegoturen\n2.Ishci"); string status = Console.ReadLine(); switch (status) { case "1": Boss boss1 = new Boss(user, email, pass); bosses[bosslength++] = boss1; break; case "2": Ishci ishci1 = new Ishci(user, email, pass); ishciler[ishcilength++] = ishci1; break; default: break; } string random = randomGenerator(); Console.WriteLine(random); string getRand = Console.ReadLine(); while (random != getRand) { Console.WriteLine("Yanlis yeniden..."); getRand = Console.ReadLine(); } }
public Appliements(string title, Ishci ishciqebulu) { Title = title; this.ishciqebulu = ishciqebulu; }