예제 #1
0
        public override int AssignID()
        {
            int  input = -1;
            Club clubs = new Club();

            if (ID == 0)
            {
                Console.Clear();
                Utility.PrintGreen("Which club does the member which to enroll in?");

                clubs.DisplayClubs();

                input = Validate.NumberRange($"Please enter the club of interest for applicant (0-{clubs.CountClubs() - 1})", clubs.CountClubs() - 1);
                clubs = clubs.PullClubs(input);
                Club  = clubs.ClubName;
                //club ID is tied to club; 100's place designates the club they belong to at a glance, with 600's designating a multiclub member
                ID = (1 + input) * 100 + _CountMembers();
            }
            else
            {
                Console.Clear();
                Utility.PrintYellow("Member already has an ID number.");
            }

            return(ID);
        }
예제 #2
0
        public static Club SelectClub()
        {
            Club club = new Club();

            Utility.PrintGreen($"Hello! Welcome to the IHeartDiamonds: Clubs Manager: We've got members in Spades(tm)!");
            club.DisplayClubs();
            return(club.PullClubs(Validate.NumberRange($"Which club are you operating from? (input 0-{club.CountClubs() - 1}).\n", club.CountClubs() - 1)));
        }