public static void Manage(string command,string[] arrgs) { switch (command) { case "register" : User newUser = new User(); newUser.Name = arrgs[0]; newUser.Password = arrgs[1]; newUser.Email = arrgs[2]; Registrator.Register(newUser); break; case "login": Login.Try(arrgs); break; case "status": Registrator.showRegistred(); Login.isLogged(); break; default: throw new Exception("Command not found!"); break; } }
public static void Register(User user) { registred.Add(user.Name + " " + user.Password + " " + user.Email); Console.WriteLine("Successful registred user!"); }