Ejemplo n.º 1
0
        internal bool LoginMenu()
        {
            Console.Clear();
            Design.WelcomeMethod();

            Console.WriteLine("\n1. Login");
            Console.WriteLine("2. Sign Up");
            Console.WriteLine("3. Exit");

            while (true)
            {
                switch (Console.ReadLine())
                {
                case "1":
                    LoginSignUP.Login();
                    Console.Clear();
                    return(true);

                case "2":
                    LoginSignUP.SignUp();
                    Console.Clear();
                    return(true);

                case "3":
                    Design.ConsoleExit();
                    return(false);

                default:
                    Console.WriteLine("Your Input dont match , Choose Again...");
                    break;
                }
            }
        }
Ejemplo n.º 2
0
        internal bool GeneralMenu(string LogedUser)
        {
            Design.MiniWelc(LogedUser);

            Console.WriteLine("1. Send Message");
            Console.WriteLine("2. Inbox");
            Console.WriteLine("3. Edit Your Message");
            Console.WriteLine("4. Delete Your Message");
            Console.WriteLine("5. Actions");
            Console.WriteLine("6. Log-Off");

            while (true)
            {
                switch (Console.ReadLine())
                {
                case "1":
                    MessagesActions.SendMessage(LogedUser);
                    Console.Clear();
                    return(true);

                case "2":
                    MessagesActions.ViewMessage(LogedUser);
                    Console.Clear();
                    return(true);

                case "3":
                    MessagesActions.EditMessage(LogedUser);
                    Console.Clear();
                    return(true);

                case "4":
                    MessagesActions.DeleteMessage(LogedUser);
                    Console.Clear();
                    return(true);

                case "5":
                    Console.Clear();
                    LoginSignUP.RoleMenu(LogedUser);
                    return(true);

                case "6":
                    return(false);

                default:
                    Console.WriteLine("Your Input dont match , Choose Again...");
                    break;
                }
            }
        }