コード例 #1
0
        public int EventCost()
        {
            Outings outing  = new Outings();
            int     product = outing.TotalCostPerPerson * outing.NumberOfPeopleAttended;

            return(product);
        }
コード例 #2
0
        public bool AddOutingToList(Outings outing)
        {
            int StartingCount = _listOfOutings.Count;

            _listOfOutings.Add(outing);
            bool wasAdded = (_listOfOutings.Count > StartingCount) ? true : false;

            return(wasAdded);
        }