コード例 #1
0
ファイル: OrderLine.cs プロジェクト: annibrit/Order
        } //Returns the DeliveryReceiver for this OrderLine

        public void RemoveDeliveryReceiver(DeliveryReceiver receiver)
        {
            DeliveryReceivers.RemoveByOrderLineReceiver(receiver);
        } //Removes the DeliveryReceiver from the OrderLine
コード例 #2
0
ファイル: OrderLine.cs プロジェクト: annibrit/Order
        } //Returns the OrderLineIdentifier—this is the unique identifier for the OrderLine

        //incrementNumberOrdered - Increments the number of ProductInstance recorded by the OrderLine
        //getNumberOrdered() - Returns the number of ProductInstances recorded by the OrderLine
        //decrementNumberOrdered - Decrements the number of ProductInstances recorded by the OrderLine

        public void AddDeliveryReceiver(DeliveryReceiver reciever)
        {
            DeliveryReceivers.Instance.Add(reciever);
        }