Exemple #1
0
        private void AddOuting()
        {
            //Console.Clear();
            Console.WriteLine("Enter the number for the outing you want to create: (Amusementpark-1/Bowling-2/Golf-3/Concert-4)");
            var typeofevent = int.Parse(Console.ReadLine());

            Console.WriteLine("Enter Customer #");
            var numberofcustomer = int.Parse(Console.ReadLine());

            Console.WriteLine("Enter event date (YYYY/MM/DD");
            var eventdate = DateTime.Parse(Console.ReadLine());

            Console.WriteLine("Enter cost per person (0.00)");
            var costperperson = decimal.Parse(Console.ReadLine());

            Console.WriteLine("Enter event total Cost (0.00)");
            var           eventtotalcost = decimal.Parse(Console.ReadLine());
            OutingContent newOuting      = new OutingContent((OutingEvent)typeofevent, numberofcustomer, eventdate, costperperson, eventtotalcost);

            _outingRepo.AddOutingContentToList(newOuting);

            Console.WriteLine("Type" + "   " + "\t\tCustomer #" + "\t\t\tDate" + "\t\t\tEntry Cost" + "\tEventCost");
            foreach (OutingContent content in _outingRepo.GetOutingContentList())
            {
                Console.WriteLine($"{content.TypeOfEvent} \t\t{content.NumberOFCustomer} \t\t{content.OutingDate} \t\t{content.PersonCost} \t\t{content.EventCost}");
                Console.ReadLine();
            }
        }
Exemple #2
0
        private void OutingDisplayContent()
        {
            OutingContent AmusementPark = new OutingContent(OutingEvent.AmusementPark, 20, new DateTime(2018 / 11 / 14), 25, 500);
            OutingContent Bowling       = new OutingContent(OutingEvent.Bowling, 30, new DateTime(2018 / 11 / 14), 9.50m, 285);
            OutingContent Golf          = new OutingContent(OutingEvent.GolfGame, 10, new DateTime(2018 / 11 / 14), 10.30m, 130);
            OutingContent Concert       = new OutingContent(OutingEvent.Concert, 40, new DateTime(2018, 11, 14), 100, 4000);

            _outingRepo.AddOutingContentToList(AmusementPark);
            _outingRepo.AddOutingContentToList(Bowling);
            _outingRepo.AddOutingContentToList(Golf);
            _outingRepo.AddOutingContentToList(Concert);
            // Console.Clear();
        }
        private void AddOutings()
        {
            OutingContent newOuting = new OutingContent();

            Console.WriteLine("What type of outing is it?");
            newOuting.OutingType = Console.ReadLine();

            Console.WriteLine("How many people attended?");
            newOuting.NumOfPeople = int.Parse(Console.ReadLine());

            Console.WriteLine("What was the date?");
            newOuting.Date = Console.ReadLine();

            Console.WriteLine("Total cost per person for the event?");
            newOuting.TotalPerPerson = decimal.Parse(Console.ReadLine());

            Console.WriteLine("Total cost for the event?");
            newOuting.TotalForEvent = decimal.Parse(Console.ReadLine());

            _outingRepo.AddOutingToList(newOuting);
        }
 public void RemoveOutingContentFromList(OutingContent content)
 {
     _outingContentList.Remove(content);
 }
 public void AddOutingContentToList(OutingContent content)
 {
     _outingContentList.Add(content);
 }
 public void AddOutingToList(OutingContent outing)
 {
     _listOfOutings.Add(outing);
 }