Пример #1
0
        public static void DisplayLogIn()
        {
            Console.WriteLine("Menu");
            Console.WriteLine("-------------------------");
            Console.WriteLine("(1) Log in.");
            Console.WriteLine("(2) Create Account");
            Console.WriteLine("(3) Forgot Password");
            Console.WriteLine();
            var key = Console.ReadKey();
            LogInSystemControll logInSystemControll = new LogInSystemControll();

            switch (key.KeyChar)
            {
            case '1':

                logInSystemControll.LogIn();
                break;

            case '2':
                logInSystemControll.CreateAccount();
                break;

            default:
                break;
            }
        }
Пример #2
0
        public static void MainMenu(string nickName)
        {
            bool continueMenu = true;

            while (continueMenu)
            {
                Console.WriteLine("Menu");
                Console.WriteLine("-------------------------");
                Console.WriteLine("(1) View profile.");
                Console.WriteLine("(2) Edit profile.");
                Console.WriteLine("(3) Messages.");
                Console.WriteLine("(4) Search for user.");
                Console.WriteLine("(5) Logout.");
                Console.WriteLine();


                switch (Console.ReadKey().KeyChar)
                {
                case '1':

                    DisplayProfile(SqlQueries.GetUser(nickName));
                    break;

                case '2':
                    EditProfileMenu();
                    break;

                case '3':
                    MessagesMenu(nickName);
                    break;

                case '4':

                    break;

                case '5':
                    LogInSystemControll lsc = new LogInSystemControll();
                    lsc.StartLogInSystem();
                    break;
                }
            }
        }
Пример #3
0
        static void Main(string[] args)
        {
            LogInSystemControll logInSystem = new LogInSystemControll();

            logInSystem.StartLogInSystem();
        }