/// <summary>
        /// Redirects to Signup page
        /// </summary>
        public void UIRedirectSignUp()
        {
            Console.WriteLine("");
            Console.WriteLine("Invalid Username or Password");
            Console.WriteLine("1. Create Account  |  2. Try Again");

            char input = Console.ReadKey(true).KeyChar;

            if (input == '1')
            {
                NewUser.SignUp();
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            #region Console Configurations
            //Connection strings:
            //DESKTOP-VCB6LRK\SQLEXPRESS
            //PAPMAN-PC\SQLEXPRESS

            //Console Configurations:
            //Debuger:
            //         width :106
            //         height:30
            //         Font  :20
            //AppExe :
            //         Left:320
            //         Top :182
            //         Font:20

            // TODO:
            // 2. Fix Admin Modification Access in MainProcedure
            #endregion


            #region Inits
            MainProcedure procedure = new MainProcedure();
            UIProcedures  UI        = new UIProcedures();
            UserSignUp    NewUser   = new UserSignUp();
            #endregion

            Console.Clear();
            UI.Wellcome();
            bool LogOut = false;


            do
            {
                if (procedure.StartMenu().KeyChar == '2')
                {
                    NewUser.SignUp();
                }
                else
                {
                    Console.Clear();
                    UI.Wellcome();
                    Console.Write("Username: "******"Password: "******"Are you Sure?(y/n)");
                        char TrueLogOut = Console.ReadKey(true).KeyChar;
                        if (TrueLogOut == 'y')
                        {
                            LogOut = false;
                        }
                    } while (LogOut);
                }
            } while (true);
        }