Ejemplo n.º 1
0
        public static void Check(string username, string password)
        {
            LogCheck check = new LogCheck();

            MainController.logUser = check.CheckUserAndPassword(username, password);

            if (MainController.logUser != null)
            {
                if (logUser.Admin == 1)
                {
                    
                    
                    Console.WriteLine("Hello admin");
                    Console.ReadKey();

                    AdminInfo info = new AdminInfo();
                    info.FullInfo();
                    Actions act = new Actions();
                    act.uAction();
                }
                if (logUser.Admin == 0)
                {
                    Console.Clear();
                    Console.WriteLine("Hello {0}", logUser.Username);
                    Console.WriteLine("I have no idea what to put here");
                    Console.ReadKey();
                   
                }
            }

            else
            {
                Console.WriteLine();
                Console.WriteLine("Wrong UserName or Password");
                //System.Threading.Thread.Sleep(1500);
                Console.ReadKey(true);
                Console.Clear();
                LoginScreen scr = new LoginScreen();
                scr.LogScreen();


            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            LoginScreen log = new LoginScreen();

            log.LogScreen();
        }