示例#1
0
        internal bool FriendActionsMenu(string LogedUser)
        {
            Console.Clear();
            Design.FriendDesign();

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

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

                case "2":
                    return(false);

                default:
                    Console.WriteLine("Your Input dont match , Choose Again...");
                    break;
                }
            }
        }
示例#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;
                }
            }
        }