static void Main(string[] args)
        {
            FAMILY myFamily = new FAMILY();

            myFamily.AddMember();
            myFamily.PrintMembers();
            // myFamily.AddMember();
            //   myFamily.SearchMember();
            //   myFamily.SearchMember();

            //  myFamily.PrintMembers();
            // Console.ReadLine();
            // myFamily.SearchMember();

            //ADD list of activities

            //  ACTIVITTIES_LIST myActivitiesList = new ACTIVITTIES_LIST();

            //  myActivitiesList.AddPosition(); //chech date input, it can parse time to date.. tryparse to some format, and print to string.
            Console.ReadLine();

            // myActivitiesList.AddPosition();
            //  Console.ReadLine();
            //  myActivitiesList.PrintPositions();
            //Console.ReadLine();
            //  myActivitiesList.SearchPositionsByName();


            RESERVATIONS_LIST myReservationList = new RESERVATIONS_LIST();

            myReservationList.AddPosition();
            // Console.ReadLine();
            //   myReservationList.SearchPositionsByName();
            //  myReservationList.SearchPositionsByName();
            Console.ReadLine();
            // myReservationList.PrintPositions();
        }
Example #2
0
        override public void AddPosition()              // need to override to connect member and activity
        {
            Console.WriteLine("Give Reservation Name"); //check if it exist in list
            string      name = Console.ReadLine();
            RESERVATION k    = new RESERVATION(name);

            //AddMembertoReservation()

            FAMILY myFamily = new FAMILY();

            myFamily.AddMember();
            myFamily.PrintMembers();//it is not printing list without adding new mwmbers from here

            Console.WriteLine("Give member name from reservation_list:");
            myFamily.SearchMembeAddToResevation(Console.ReadLine()); //in what list it is searching?
            Console.WriteLine(k._reservationActivityName);
            myFamily._memberNameFamily = k._reservationMemberName;   //picking only name?
            myFamily._memberIDFamily   = k._reservationMemberID;
            myFamily._memberAgeFamily  = k._reservationMemberAge;
            myFamily._isitAdultFamily  = k._reservationMemberIsitAdult;

            Console.ReadLine();
            //AddActivitytoReservation()
        }