Beispiel #1
0
        static void Main(string[] args)
        {
            cd = new seller();
            bool logged = false;
            bool quit   = false;

            Console.WriteLine("concessionaria D:");

            while (true)
            {
                if (logged)
                {
                    Console.Clear();
                    Console.WriteLine("ora sei nel main da loggato :D");
                    if (Home())
                    {
                        cd.save();
                        Environment.Exit(0);
                    }
                }
                else
                {
                    bool stopAsk = true;
                    while (stopAsk)
                    {
                        (var user, var pass) = LoginInput();
                        if (cd.login(user, pass))
                        {
                            Console.WriteLine("Loggato con successo");
                            stopAsk = false;
                            logged  = true;
                        }
                    }
                }
            }
        }
Beispiel #2
0
 //costruttori
 public carDealership()
 {
     sel = new seller();
 }