Example #1
0
        static void User_Write(ref Keep_User keep_, ref int tamp)
        {
            string a = "", b = "";

            Write_foo(ref a, ref b);
            User user = new User(a, b);

            if (tamp == 1)
            {
                keep_.Add_User(user);
            }
            if (a == "add" && b == "add" || tamp == 1)
            {
                tamp++;
            }
        }
Example #2
0
        public static void Registretion(ref Keep_User keep_, string a, string b)
        {
            Console.WriteLine("Create account");

            User user;

            do
            {
                if (a != "add" && b != "add")
                {
                    Console.WriteLine("Replay please");
                }
                Write_foo(out string name, out string pass);
                if (pass == "random")
                {
                    Randomizer(out pass);
                }
                Console.Clear();
                user = new User(name, pass);
            }while (keep_.Add_Control(user));

            keep_.Add_User(user);
        }