예제 #1
0
        public static void option0()
        {
            Console.WriteLine("Please Select from following option: ");


            Console.WriteLine("\tc - Do you want to continue with Registration ");

            Console.WriteLine("\te - Exit from application. ");

            Console.Write("Your option? : ");
            string optiono = Console.ReadLine();

            while (string.IsNullOrEmpty(optiono))
            {
                Console.WriteLine("Your Selection can't be empty! Input your selection once more");
                optiono = Console.ReadLine();
            }
            if ((optiono == "c") || (optiono == "e"))
            {
                if (optiono == "c")
                {
                    UserRegister.userDetails();
                }
                else if (optiono == "e")
                {
                    endApp = true;
                }
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");


            bool endApp = false;

            Console.WriteLine("Welcome to Fun Bank App! ");


            while (!endApp)

            {
                Selection.option0();

                if (UserRegister._numberOfUser > 0)

                {
                    Selection.option1();
                }
                else
                {
                    Console.WriteLine("Registration is not sucesss. Please try after some time.");
                    UserRegister.userDetails();
                }


                if (AccountCreation._totalAccount > 0)
                {
                    Selection.option2();
                }
                else
                {
                    Console.WriteLine("Please Register First");
                    UserRegister.userDetails();
                }
            }
        }