Exemplo n.º 1
0
        internal void CopyTo(TourCostDetailCollection details)
        {
            details.Clear();

            foreach (TourCostDetail detail in this)
            {
                TourCostDetail detailCopy = new TourCostDetail();
                detail.CopyTo(detailCopy);

                details.Add(detailCopy);
            }
        }
Exemplo n.º 2
0
        public TourServiceBase()
        {
            this.id          = -1;
            this.costDetails = new TourCostDetailCollection();
            this.payments    = new TourPaymentCollection();
            this.Bill        = new TourReceipt();
            this.serviceType = new Service();

            this.DeletedPayments = new TourPaymentCollection();

            this.CostDetails.ListChanged += new ListChangedEventHandler(CostDetails_ListChanged);
            this.Payments.ListChanged    += new ListChangedEventHandler(Payments_ListChanged);
        }