Exemplo n.º 1
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;
                }
            }
        }
Exemplo n.º 2
0
        internal bool ModActionsMenu(string LogedUser)
        {
            Console.Clear();
            Design.ModDesign();

            Console.WriteLine("1.  View  --> A User's Messages");
            Console.WriteLine("2.  Edit  --> A User's Messages");
            Console.WriteLine("3. Delete --> A User's Messages");
            Console.WriteLine("4. Return ");

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

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

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

                case "4":
                    Console.Clear();
                    return(false);

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